| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class BehaviorAlbum extends Behavior |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Load Album model by conditions. |
||
| 21 | * |
||
| 22 | * @param array $conditions |
||
| 23 | * |
||
| 24 | * @return Album|ActiveRecordInterface|null |
||
| 25 | */ |
||
| 26 | protected function loadModel(array $conditions) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Remove owner of Album model. |
||
| 33 | * |
||
| 34 | * @param int $ownerId |
||
| 35 | * @param string $owner |
||
| 36 | * @param string $ownerAttribute |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | protected function removeOwner(int $ownerId, string $owner, string $ownerAttribute): bool |
||
| 45 |