html-object-strings/src/Containers/Fragment.php

18 lines
337 B
PHP
Raw Normal View History

2022-11-30 14:55:35 +00:00
<?php
namespace ByJoby\HTML\Containers;
use ByJoby\HTML\Traits\ContainerMutableTrait;
use ByJoby\HTML\Traits\ContainerTrait;
class Fragment implements FragmentInterface
{
use ContainerTrait;
use ContainerMutableTrait;
public function __toString(): string
{
return implode(PHP_EOL, $this->children());
}
}