for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\valuewrapper\Object;
use SuperClosure\Serializer;
/**
* Class ClosureObject
*/
class ClosureObject extends ObjectValue
{
* ClosureObject constructor.
*
* @param \Closure $value
public function __construct(\Closure $value)
parent::__construct($value);
}
* {@inheritdoc}
public function hash(): string
$serializer = new Serializer();
return $this->doHash($serializer->serialize($this->get()));
public function __invoke()
return \call_user_func_array($this->get(), \func_get_args());