for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\valuewrapper\Type;
use drupol\valuewrapper\AbstractValue;
class TypeValue extends AbstractValue
{
/**
* {@inheritdoc}
*/
protected function doHash(string $string) : string
return \sha1($string);
}
public function hash(): string
return $this->doHash($this->getType() . $this->value);
public function getType()
return \gettype($this->value);