| Total Complexity | 6 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 38.46% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class Body |
||
| 25 | { |
||
| 26 | /** @var string * */ |
||
| 27 | private $body; |
||
| 28 | |||
| 29 | 6 | public function __construct(string $body) |
|
| 32 | 6 | } |
|
| 33 | |||
| 34 | public function isTextBody(): bool |
||
| 35 | { |
||
| 36 | return true; |
||
| 37 | } |
||
| 38 | |||
| 39 | public static function createEmpty(): self |
||
| 40 | { |
||
| 41 | return new self(''); |
||
| 42 | } |
||
| 43 | |||
| 44 | 6 | public function asString(): string |
|
| 45 | { |
||
| 46 | 6 | return $this->body; |
|
| 47 | } |
||
| 48 | |||
| 49 | public function asStream(): StreamInterface |
||
| 52 | } |
||
| 53 | |||
| 54 | public function equals(self $other): bool |
||
| 57 | } |
||
| 58 | } |
||
| 59 |