| 1 | <?php  | 
            ||
| 10 | class Category extends \ArrayObject  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * Gets all category's children categories.  | 
            ||
| 14 | *  | 
            ||
| 15 | * @return array Array of YMLParser\Node\Category or empty array  | 
            ||
| 16 | */  | 
            ||
| 17 | public function getChildren()  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Gets category's parent category.  | 
            ||
| 24 | *  | 
            ||
| 25 | * @return Category|null  | 
            ||
| 26 | */  | 
            ||
| 27 | public function getParentCategory()  | 
            ||
| 31 | |||
| 32 | /**  | 
            ||
| 33 | * Checks wether category has parent category or not.  | 
            ||
| 34 | *  | 
            ||
| 35 | * @return bool  | 
            ||
| 36 | */  | 
            ||
| 37 | public function hasParentCategory()  | 
            ||
| 41 | }  | 
            ||
| 42 |