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