| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class Choose implements RepresentsChoice |
||
| 19 | { |
||
| 20 | private $class; |
||
| 21 | |||
| 22 | private function __construct(MakesMap $class) |
||
| 23 | { |
||
| 24 | $this->class = $class; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Creates a new option to choose from. |
||
| 29 | * |
||
| 30 | * @param string $class The fully qualified name of the class that can |
||
| 31 | * be chosen. |
||
| 32 | * @return RepresentsChoice The object representation of the choice. |
||
| 33 | */ |
||
| 34 | public static function the(string $class): RepresentsChoice |
||
| 35 | { |
||
| 36 | return new Choose(Mapper::forThe($class)); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** @inheritdoc */ |
||
| 40 | public function with(string $property, InstructsHowToMap $howToMap = null): RepresentsChoice |
||
| 44 | } |
||
| 45 | |||
| 46 | /** @inheritdoc */ |
||
| 47 | public function finish(): Hydrates |
||
| 50 | } |
||
| 51 | } |
||
| 52 |