]> git.mxchange.org Git - friendica.git/commitdiff
Added documentation
authorMichael <heluecht@pirati.ca>
Sat, 24 Jul 2021 20:42:09 +0000 (20:42 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 24 Jul 2021 20:42:09 +0000 (20:42 +0000)
src/App.php

index 8190bcbaee0d992e24adcfb566fad00467d2d10d..fda97299d3b39a073c418b1c1b4a65062f2790ff 100644 (file)
@@ -56,9 +56,6 @@ use Psr\Log\LoggerInterface;
  */
 class App
 {
-       private $profile_owner;
-       private $contact_id;
-
        public $user;
        public $data = [];
        /** @deprecated 2019.09 - use App\Arguments->getArgv() or Arguments->get() */
@@ -75,6 +72,9 @@ class App
        public $theme_events_in_profile = true;
        public $queue;
 
+       private $profile_owner;
+       private $contact_id;
+
        /**
         * @var App\Mode The Mode of the Application
         */
@@ -130,22 +130,44 @@ class App
         */
        private $pConfig;
 
+       /**
+        * Set the profile owner ID
+        *
+        * @param int $owner_id 
+        * @return void 
+        */
        public function setProfileOwner(int $owner_id)
        {
                $this->profile_owner = $owner_id;
        }
 
-       public function getProfileOwner()
+       /**
+        * Get the profile owner ID
+        *
+        * @return int 
+        */
+       public function getProfileOwner():int
        {
                return $this->profile_owner;
        }
 
+       /**
+        * Set the contact ID
+        * 
+        * @param int $contact_id 
+        * @return void 
+        */
        public function setContactId(int $contact_id)
        {
                $this->contact_id = $contact_id;
        }
 
-       public function getContactId()
+       /**
+        * Get the contact ID
+        *
+        * @return int 
+        */
+       public function getContactId():int
        {
                return $this->contact_id;
        }