| 1 | <?php |
||
| 14 | class DefaultReference implements ReferenceInterface { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $class; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Construct a new instance of the {@link Reference} class. |
||
| 22 | * |
||
| 23 | * @param string $class The name of the reference. |
||
| 24 | */ |
||
| 25 | 15 | public function __construct($class) { |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get the name of the reference. |
||
| 31 | * |
||
| 32 | * @return string Returns the name of the reference. |
||
| 33 | */ |
||
| 34 | 5 | public function getClass() { |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Set the name of the reference. |
||
| 40 | * |
||
| 41 | * @param string $class The name of the reference. |
||
| 42 | */ |
||
| 43 | 15 | public function setClass($class) { |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | 7 | public function resolve(Container $container, $_ = null) { |
|
| 53 | } |
||
| 54 |
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.