| Total Complexity | 9 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class PropertyState implements RepresentsProperty |
||
| 12 | { |
||
| 13 | private $name; |
||
| 14 | private $value; |
||
| 15 | |||
| 16 | private function __construct(string $name, $value) |
||
| 17 | { |
||
| 18 | $this->name = $name; |
||
| 19 | $this->value = $value; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Something something with. |
||
| 24 | * |
||
| 25 | * @param string $name |
||
| 26 | * @param mixed $value |
||
| 27 | * @return RepresentsProperty |
||
| 28 | */ |
||
| 29 | public static function with(string $name, $value): RepresentsProperty |
||
| 30 | { |
||
| 31 | return new self($name, $value); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** @inheritdoc */ |
||
| 35 | public function name(): string |
||
| 36 | { |
||
| 37 | return $this->name; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** @inheritdoc */ |
||
| 41 | public function value() |
||
| 44 | } |
||
| 45 | |||
| 46 | /** @inheritdoc */ |
||
| 47 | public function isSameAs(RepresentsProperty $otherProperty): bool |
||
| 51 | } |
||
| 52 | |||
| 53 | /** @inheritdoc */ |
||
| 54 | public function isDifferentInThe(ListsPropertyStates $otherProperties): bool |
||
| 64 |