| 1 | <?php  | 
            ||
| 13 | class CategoryEntity implements CategoryInterface  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var integer  | 
            ||
| 17 | *  | 
            ||
| 18 | * @Column(name="id_cat", type="smallint", nullable=false)  | 
            ||
| 19 | * @Id  | 
            ||
| 20 | */  | 
            ||
| 21 | public $idCat;  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * @var integer  | 
            ||
| 25 | *  | 
            ||
| 26 | * @Column(name="cat_order", type="smallint", nullable=false)  | 
            ||
| 27 | */  | 
            ||
| 28 | public $catOrder = 0;  | 
            ||
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * @var string  | 
            ||
| 32 | *  | 
            ||
| 33 | * @Column(name="name", type="string", length=255, nullable=false)  | 
            ||
| 34 | */  | 
            ||
| 35 | public $name = '';  | 
            ||
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * @var boolean  | 
            ||
| 39 | *  | 
            ||
| 40 | * @Column(name="can_collapse", type="boolean", nullable=false)  | 
            ||
| 41 | */  | 
            ||
| 42 | public $canCollapse = 1;  | 
            ||
| 43 | |||
| 44 | /**  | 
            ||
| 45 | * @return int  | 
            ||
| 46 | */  | 
            ||
| 47 | public function getId()  | 
            ||
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * @param int $id  | 
            ||
| 54 | * @return CategoryEntity  | 
            ||
| 55 | */  | 
            ||
| 56 | public function setId($id)  | 
            ||
| 62 | |||
| 63 | /**  | 
            ||
| 64 | * @return string  | 
            ||
| 65 | */  | 
            ||
| 66 | public function getTitle()  | 
            ||
| 70 | |||
| 71 | /**  | 
            ||
| 72 | * @param string $name  | 
            ||
| 73 | * @param int $order  | 
            ||
| 74 | * @return $this  | 
            ||
| 75 | */  | 
            ||
| 76 | public function fill($name, $order)  | 
            ||
| 83 | }  | 
            ||
| 84 |