| Total Complexity | 10 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 80.95% |
| Changes | 2 | ||
| 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 | |||
| 21 | /** |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $name; |
||
| 26 | |||
| 27 | 21 | public function __construct(?string $name = null) { |
|
| 29 | 21 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | 21 | public function getName() { |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * |
||
| 41 | * @param string $name |
||
| 42 | */ |
||
| 43 | 3 | public function setName($name) { |
|
| 44 | 3 | $this->name = $name; |
|
| 45 | 3 | } |
|
| 46 | |||
| 47 | 6 | public function toArray(): array { |
|
| 49 | } |
||
| 50 | |||
| 51 | 6 | public function fromArray(array $values) { |
|
| 52 | 6 | foreach ($values as $k => $v) { |
|
| 53 | 6 | $this->$k = $v; |
|
| 54 | } |
||
| 55 | 6 | $this->_fromArray = true; |
|
|
1 ignored issue
–
show
|
|||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * |
||
| 60 | * @return mixed |
||
| 61 | */ |
||
| 62 | public function getId() { |
||
| 63 | return $this->id; |
||
| 64 | } |
||
| 65 | |||
| 66 | public function getId_() { |
||
| 67 | return $this->name; |
||
| 68 | } |
||
| 69 | 3 | ||
| 70 | 3 | /** |
|
| 71 | 3 | * |
|
| 72 | * @param mixed $id |
||
| 73 | */ |
||
| 74 | public function setId($id) { |
||
| 75 | $this->id = $id; |
||
| 76 | } |
||
| 77 | |||
| 78 | public function __toString() { |
||
| 80 | } |
||
| 81 | } |
||
| 82 | |||
| 83 |