| 1 | <?php |
||
| 11 | class GraphicalValue |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $value; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $year; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $type; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * GraphicalValue constructor. |
||
| 31 | * |
||
| 32 | * @param int $value |
||
| 33 | * @param int $year |
||
| 34 | * @param int $type |
||
| 35 | */ |
||
| 36 | public function __construct($value, $year, $type) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return int |
||
| 45 | */ |
||
| 46 | public function getValue() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return int |
||
| 53 | */ |
||
| 54 | public function getYear() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return int |
||
| 61 | */ |
||
| 62 | public function getType() |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param GraphicalValue $value |
||
| 69 | * |
||
| 70 | * @return GraphicalValue |
||
| 71 | */ |
||
| 72 | public function add($value) |
||
| 76 | |||
| 77 | } |