1 | <?php |
||
12 | trait NameTrait |
||
13 | { |
||
14 | /** |
||
15 | * @var string the variable name. If not null, then the js creation script |
||
16 | * will be returned as a variable. If null, then the js creation script will |
||
17 | * be returned as a constructor that you can use on other object's configuration options. |
||
18 | */ |
||
19 | private $_name; |
||
20 | |||
21 | /** |
||
22 | * Returns the name of the layer. |
||
23 | * |
||
24 | * @param boolean $autoGenerate whether to generate a name if it is not set previously |
||
25 | * |
||
26 | * @return string name of the layer. |
||
27 | */ |
||
28 | 147 | public function getName($autoGenerate = false) |
|
35 | |||
36 | /** |
||
37 | * Sets the name of the layer. |
||
38 | * |
||
39 | * @param string $value name of the layer. |
||
40 | */ |
||
41 | 66 | public function setName($value) |
|
45 | } |
||
46 |