| 1 | <?php |
||
| 5 | class CategoryRegistry |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | protected static $categories = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * |
||
| 15 | * @param $category |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | public static function has($category) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * |
||
| 25 | * @param $category |
||
| 26 | * @param $vendor |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public static function get($category, $vendor) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * |
||
| 45 | * @param string $vendor |
||
| 46 | * @param array $map |
||
| 47 | */ |
||
| 48 | public static function addVendorCategories($vendor, array $map) |
||
| 58 | } |
||
| 59 |