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