1 | <?php |
||
10 | class Scope implements ScopeEntityInterface |
||
11 | { |
||
12 | use EntityTrait; |
||
13 | |||
14 | /** |
||
15 | * Create a new scope instance. |
||
16 | * |
||
17 | * @param string $name |
||
18 | * |
||
19 | * @return void |
||
|
|||
20 | */ |
||
21 | public function __construct($name) |
||
25 | |||
26 | /** |
||
27 | * Get the data that should be serialized to JSON. |
||
28 | * |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function jsonSerialize() |
||
35 | } |
||
36 |
Adding a
@return
annotation 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.