mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Minor phpdoc update in Template class
This commit is contained in:
@@ -1171,7 +1171,6 @@ class Template extends WireData implements Saveable, Exportable {
|
|||||||
* Given an array of export data, import it
|
* Given an array of export data, import it
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return bool True if successful, false if not
|
|
||||||
* @return array Returns array(
|
* @return array Returns array(
|
||||||
* [property_name] => array(
|
* [property_name] => array(
|
||||||
* 'old' => 'old value', // old value (in string comparison format)
|
* 'old' => 'old value', // old value (in string comparison format)
|
||||||
@@ -1222,7 +1221,7 @@ class Template extends WireData implements Saveable, Exportable {
|
|||||||
* #pw-group-family
|
* #pw-group-family
|
||||||
*
|
*
|
||||||
* @param array|TemplatesArray|null $setValue Specify only when setting, an iterable value containing Template objects, IDs or names
|
* @param array|TemplatesArray|null $setValue Specify only when setting, an iterable value containing Template objects, IDs or names
|
||||||
* @return TemplatesArray
|
* @return TemplatesArray|Template[]
|
||||||
* @since 3.0.153
|
* @since 3.0.153
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -1237,7 +1236,7 @@ class Template extends WireData implements Saveable, Exportable {
|
|||||||
*
|
*
|
||||||
* @param string $property Specify either 'childTemplates' or 'parentTemplates'
|
* @param string $property Specify either 'childTemplates' or 'parentTemplates'
|
||||||
* @param array|TemplatesArray|null $setValue Iterable value containing Template objects, IDs or names
|
* @param array|TemplatesArray|null $setValue Iterable value containing Template objects, IDs or names
|
||||||
* @return TemplatesArray
|
* @return TemplatesArray|Template[]
|
||||||
* @since 3.0.153
|
* @since 3.0.153
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -1267,6 +1266,7 @@ class Template extends WireData implements Saveable, Exportable {
|
|||||||
if($template) $value->add($template);
|
if($template) $value->add($template);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/** @var TemplatesArray|Template[] $value */
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user