| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class Watchman implements DomainWatchman |
||
| 24 | { |
||
| 25 | public function isSupported(Profile $profile): bool |
||
| 26 | { |
||
| 27 | try { |
||
| 28 | Assertion::regex($profile->getVersion(), '~^([0-9]+\.{0,1})+$~'); |
||
| 29 | } catch (InvalidArgumentException $e) { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | return $profile->getName() === Factory::PROFILE_NAME; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function passBuilder(Profile $profile): DomainBuilder |
||
| 38 | } |
||
| 39 | } |
||
| 40 |