| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class FindOrFailTranslation |
||
| 10 | { |
||
| 11 | private $find; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * FindOrFailTranslation constructor. |
||
| 15 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
| 16 | */ |
||
| 17 | 2 | public function __construct() |
|
| 18 | { |
||
| 19 | 2 | $this->find = app()->make(FindTranslation::class); |
|
| 20 | 2 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param int $id |
||
| 24 | * @return Translation |
||
| 25 | * @throws TranslationDoesNotExistsException |
||
| 26 | */ |
||
| 27 | 2 | public function make(int $id): Translation |
|
| 36 | } |
||
| 37 | } |
||
| 38 |