]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseModel.php
"getStyledURL" is now public
[friendica.git] / src / BaseModel.php
index 768e9e9e53d5190e4f9277e9e7531b2d9284e5c9..1189f7f33b1187ef75e34a2e6c4d4ba890022535 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -94,7 +94,7 @@ abstract class BaseModel extends BaseDataTransferObject
        }
 
        /**
-        * Magic isset method. Returns true if the field exists, either in the data prperty array or in any of the local properties.
+        * Magic isset method. Returns true if the field exists, either in the data property array or in any of the local properties.
         * Used by array_column() on an array of objects.
         *
         * @param $name
@@ -110,11 +110,11 @@ abstract class BaseModel extends BaseDataTransferObject
         * - $model->field (outside of class)
         * - $this->field (inside of class)
         *
-        * @param $name
+        * @param string $name Name of data to fetch
         * @return mixed
         * @throws HTTPException\InternalServerErrorException
         */
-       public function __get($name)
+       public function __get(string $name)
        {
                $this->checkValid();