| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class IntegerMapper extends AbstractPropertyMapper |
||
| 16 | { |
||
| 17 | /** @var AsInteger */ |
||
| 18 | private $options; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * C'tor. |
||
| 22 | * |
||
| 23 | * @param AsInteger $options |
||
| 24 | */ |
||
| 25 | 49 | public function __construct(AsInteger $options) |
|
| 28 | 49 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return AsInteger |
||
| 32 | */ |
||
| 33 | 4 | public function getOptions() |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param Slumberer $slumberer |
||
| 40 | * @param mixed $value |
||
| 41 | * |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | 19 | public function slumber(Slumberer $slumberer, $value) |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param Awaker $awaker |
||
| 51 | * @param mixed $value |
||
| 52 | * |
||
| 53 | * @return int |
||
| 54 | */ |
||
| 55 | 15 | public function awake(Awaker $awaker, $value) |
|
| 60 |