1: <?php
2: namespace Datadepo\Api\Structures;
3:
4: /**
5: * @property-read integer $primary
6: * @property-read integer $dataDepoId
7: * @property-read bool $deleted
8: * @property-read string $project
9: * @property-read integer $parentId
10: * @property-read integer $position
11: * @property-read string $name
12: * @property-read string $namePath
13: * @property-read string $urlPath
14: * @property-read bool $active
15: */
16: class CategoryLine extends AbstractStructure
17: {
18:
19: /**
20: * @return integer
21: */
22: public function getPrimary()
23: {
24: return $this->getDataDepoId();
25: }
26:
27: /**
28: * @return integer
29: */
30: public function getDataDepoId()
31: {
32: return $this->data->id;
33: }
34:
35: /**
36: * @return bool
37: */
38: public function getDeleted()
39: {
40: return (bool)$this->data->deleted;
41: }
42:
43: /**
44: * @return string
45: */
46: public function getProject()
47: {
48: return $this->data->project;
49: }
50:
51: /**
52: * @return integer
53: */
54: public function getParentId()
55: {
56: return $this->data->parentId;
57: }
58:
59: /**
60: * @return integer
61: */
62: public function getPosition()
63: {
64: return $this->data->position;
65: }
66:
67: /**
68: * @return string
69: */
70: public function getName()
71: {
72: return $this->data->name;
73: }
74:
75: /**
76: * @return string
77: */
78: public function getNamePath()
79: {
80: return $this->data->namePath;
81: }
82:
83: /**
84: * @return string
85: */
86: public function getUrlPath()
87: {
88: return $this->data->urlPath;
89: }
90:
91: /**
92: * @return bool
93: */
94: public function getActive()
95: {
96: return (bool)$this->data->active;
97: }
98:
99:
100: }