| 1 | <?php |
||
| 7 | class UserRelation extends AbstractEntity |
||
| 8 | { |
||
| 9 | const TYPE_BOOK = 1; |
||
| 10 | const TYPE_FOOK = -1; |
||
| 11 | const TYPE_FRIEND = 2; |
||
| 12 | const TYPE_IGNORE = -2; |
||
| 13 | const TYPE_IGNORE_MAIL = -3; |
||
| 14 | |||
| 15 | //region Column properties |
||
| 16 | |||
| 17 | /** @var integer */ |
||
| 18 | protected $id; |
||
| 19 | |||
| 20 | /** @var integer */ |
||
| 21 | protected $userId; |
||
| 22 | |||
| 23 | /** @var integer */ |
||
| 24 | protected $nodeId; |
||
| 25 | |||
| 26 | /** @var integer */ |
||
| 27 | protected $type; |
||
| 28 | |||
| 29 | //endregion |
||
| 30 | |||
| 31 | //region Association properties |
||
| 32 | |||
| 33 | //endregion |
||
| 34 | |||
| 35 | //region Column methods |
||
| 36 | |||
| 37 | public function getId() |
||
| 41 | |||
| 42 | public function getUserId() |
||
| 46 | |||
| 47 | public function setUserId($userId) |
||
| 53 | |||
| 54 | public function getNodeId() |
||
| 58 | |||
| 59 | public function setNodeId($nodeId) |
||
| 65 | |||
| 66 | public function getType() |
||
| 70 | |||
| 71 | public function setType($type) |
||
| 77 | |||
| 78 | //endregion |
||
| 79 | |||
| 80 | //region Association methods |
||
| 81 | |||
| 82 | //endregion |
||
| 83 | |||
| 84 | //region Custom methods |
||
| 85 | |||
| 86 | //endregion |
||
| 87 | } |
||
| 88 |