| 1 | <?php |
||
| 16 | class AddonCollection extends Collection |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @throws InvalidInterfaceException |
||
| 21 | */ |
||
| 22 | public function __construct() |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * @param AddonApiVersion $addon |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function addAddon(AddonApiVersion $addon): bool |
||
| 36 | |||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $addon_slug |
||
| 40 | * @return AddonApiVersion|null |
||
| 41 | */ |
||
| 42 | public function getAddon(string $addon_slug): ?AddonApiVersion |
||
| 46 | |||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $addon_slug |
||
| 50 | * @return bool |
||
| 51 | */ |
||
| 52 | public function hasAddon(string $addon_slug): bool |
||
| 56 | } |
||
| 57 |