| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SongObserver |
||
| 9 | { |
||
| 10 | private $helperService; |
||
| 11 | |||
| 12 | 45 | public function __construct(HelperService $helperService) |
|
| 13 | { |
||
| 14 | 45 | $this->helperService = $helperService; |
|
| 15 | 45 | } |
|
| 16 | |||
| 17 | 45 | public function creating(Song $song): void |
|
| 18 | { |
||
| 19 | 45 | $this->setFileHashAsId($song); |
|
| 20 | 45 | } |
|
| 21 | |||
| 22 | 45 | private function setFileHashAsId(Song $song): void |
|
| 25 | 45 | } |
|
| 26 | } |
||
| 27 |