1 | <?php |
||
13 | class DefaultReference implements ReferenceInterface { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $name; |
||
18 | |||
19 | /** |
||
20 | * Construct a new instance of the {@link Reference} class. |
||
21 | * |
||
22 | * @param string $name The name of the reference. |
||
23 | */ |
||
24 | 5 | public function __construct($name) { |
|
25 | $this->setName($name); |
||
26 | 5 | } |
|
27 | |||
28 | /** |
||
29 | * Get the name of the reference. |
||
30 | * |
||
31 | * @return string Returns the name of the reference. |
||
32 | */ |
||
33 | 1 | public function getName() { |
|
36 | |||
37 | /** |
||
38 | * Set the name of the reference. |
||
39 | * |
||
40 | * @param string $name The name of the reference. |
||
41 | */ |
||
42 | 4 | public function setName($name) { |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 3 | public function resolve(Container $container, $_ = null) { |
|
52 | } |
||
53 |
This check marks parameter names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString
.