| 1 | <?php |
||
| 8 | class Scope implements ScopeEntityInterface |
||
| 9 | { |
||
| 10 | use EntityTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Create a new scope instance. |
||
| 14 | * |
||
| 15 | * @param string $name |
||
| 16 | * |
||
| 17 | * @return void |
||
|
|
|||
| 18 | */ |
||
| 19 | public function __construct($name) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the data that should be serialized to JSON. |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function jsonSerialize() |
||
| 33 | } |
||
| 34 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.