| Total Complexity | 8 |
| Total Lines | 81 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class FooBarStub implements IStringerEntity |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | protected $foo; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $bar; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | public function getId() |
||
| 21 | { |
||
| 22 | return $this->foo; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $id |
||
| 27 | */ |
||
| 28 | public function setId($id) |
||
| 29 | { |
||
| 30 | $this->id = $id; |
||
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getFoo(): string |
||
| 37 | { |
||
| 38 | return $this->foo; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $foo |
||
| 43 | * |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | public function setFoo(string $foo): self |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getBar(): string |
||
| 57 | { |
||
| 58 | return $this->bar; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param string $bar |
||
| 63 | * |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function setBar(string $bar): self |
||
| 67 | { |
||
| 68 | $this->bar = $bar; |
||
| 69 | |||
| 70 | return $this; |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function __toString(): string |
||
| 79 | } |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | public function toJSON(): string |
||
| 90 | ] |
||
| 91 | ); |
||
| 92 | } |
||
| 94 |