| 1 | <?php |
||
| 18 | class AssociationValue implements Comparable |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @Type ("string") |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $propertyKey; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @Type ("string") |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $propertyValue; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | * @param string $propertyKey |
||
| 36 | * @param string $propertyValue |
||
| 37 | */ |
||
| 38 | 48 | function __construct($propertyKey, $propertyValue) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 19 | public function getPropertyKey() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | 19 | public function getPropertyValue() |
|
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | 6 | public function compareTo($other) |
|
| 75 | |||
| 76 | } |
||
| 77 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.