| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Profile |
||
| 11 | { |
||
| 12 | private const SEPARATOR = ':'; |
||
| 13 | |||
| 14 | /** @var Name */ |
||
| 15 | private $name; |
||
| 16 | |||
| 17 | /** @var Version */ |
||
| 18 | private $version; |
||
| 19 | |||
| 20 | private function __construct(Name $name, Version $version) |
||
| 21 | { |
||
| 22 | $this->name = $name; |
||
| 23 | $this->version = $version; |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function createFrom(string $name, string $version): self |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function equal(self $profile): bool |
||
| 35 | { |
||
| 36 | return $this->name->equal($profile->name) |
||
| 37 | && $this->version->equal($profile->version); |
||
| 38 | } |
||
| 39 | |||
| 40 | public function __toString(): string |
||
| 43 | } |
||
| 44 | } |
||
| 45 |