for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace drupol\valuewrapper\Type;
use drupol\valuewrapper\Contract\Stringable;
/**
* Class StringType.
*/
class StringType extends TypeValue implements Stringable
{
* StringType constructor.
*
* @param string $value
public function __construct(string $value)
parent::__construct($value);
}
* {@inheritdoc}
public function __toArray(): array
return (false === $split = str_split($this->value())) ?
[] :
$split;
public function __toString(): string
return (string) $this->value();