for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\valuewrapper\Object;
use drupol\valuewrapper\Hashable;
/**
* Class AnonymousObject
*/
class AnonymousObject extends ObjectValue
{
* {@inheritdoc}
public function hash(): string
if ($this->get() instanceof Hashable) {
return $this->doHash($this->get()->hash());
}
throw new \Exception('The anonymous class must implement Hashable interface.');