| Total Complexity | 5 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 5 | class NotEmptyString  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var string  | 
            ||
| 9 | */  | 
            ||
| 10 | private $text;  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @param string $text  | 
            ||
| 14 | */  | 
            ||
| 15 | public function __construct(string $text)  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | /**  | 
            ||
| 24 | * @return string  | 
            ||
| 25 | */  | 
            ||
| 26 | public function toNative(): string  | 
            ||
| 27 |     { | 
            ||
| 28 | return $this->text;  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * @return string  | 
            ||
| 33 | */  | 
            ||
| 34 | public function __toString(): string  | 
            ||
| 35 |     { | 
            ||
| 36 | return $this->toNative();  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @param NotEmptyString $notEmptyString  | 
            ||
| 41 | * @return bool  | 
            ||
| 42 | */  | 
            ||
| 43 | public function equals(NotEmptyString $notEmptyString): bool  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |