| Total Complexity | 6 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class Record |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | * @Assert\NotBlank(groups={"CREATE", "UPDATE"}) |
||
| 24 | * @Groups({"REPLACE", "CREATE"}) |
||
| 25 | */ |
||
| 26 | protected $content; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var bool |
||
| 30 | * @Groups({"REPLACE", "CREATE", "DELETE"}) |
||
| 31 | */ |
||
| 32 | protected $disabled = false; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var bool |
||
| 36 | * @Groups({"REPLACE", "CREATE", "DELETE"}) |
||
| 37 | */ |
||
| 38 | protected $setPtr = false; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getContent(): string |
||
| 44 | { |
||
| 45 | return $this->content; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $content |
||
| 50 | * |
||
| 51 | * @return Record |
||
| 52 | */ |
||
| 53 | public function setContent(string $content): Record |
||
| 54 | { |
||
| 55 | $this->content = $content; |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | public function isDisabled(): bool |
||
| 64 | { |
||
| 65 | return $this->disabled; |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param bool $disabled |
||
| 70 | * |
||
| 71 | * @return Record |
||
| 72 | */ |
||
| 73 | public function setDisabled(bool $disabled): Record |
||
| 74 | { |
||
| 75 | $this->disabled = $disabled; |
||
| 76 | |||
| 77 | return $this; |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | public function getSetPtr() |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @param mixed $setPtr |
||
| 90 | * |
||
| 91 | * @return Record |
||
| 92 | */ |
||
| 93 | public function setSetPtr($setPtr): Record |
||
| 98 | } |
||
| 99 | } |
||
| 100 |