| Total Complexity | 8 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Coverage | 35.7% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class AbstractAclPart { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * |
||
| 16 | * @id |
||
| 17 | * @column("name"=>"id","nullable"=>false,"dbType"=>"int(11)") |
||
| 18 | */ |
||
| 19 | protected $id; |
||
| 20 | 8 | ||
| 21 | 8 | /** |
|
| 22 | 8 | * |
|
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $name; |
||
| 26 | |||
| 27 | public function __construct(?string $name = null) { |
||
| 29 | 8 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | public function getName() { |
||
| 36 | return $this->name; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * |
||
| 41 | * @param string $name |
||
| 42 | */ |
||
| 43 | public function setName($name) { |
||
| 44 | $this->name = $name; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function toArray(): array { |
||
| 48 | return \get_object_vars($this); |
||
| 49 | } |
||
| 50 | |||
| 51 | public function fromArray(array $values) { |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * |
||
| 59 | * @return mixed |
||
| 60 | */ |
||
| 61 | public function getId() { |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * |
||
| 67 | * @param mixed $id |
||
| 68 | */ |
||
| 69 | public function setId($id) { |
||
| 71 | } |
||
| 72 | } |
||
| 74 |