for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace drupol\valuewrapper\Object;
use drupol\valuewrapper\AbstractValue;
use drupol\valuewrapper\ValueInterface;
use function get_class;
/**
* Class ObjectValue.
*/
abstract class ObjectValue extends AbstractValue implements ObjectValueInterface
{
* {@inheritdoc}
public function apply(callable $callable)
$value = clone $this->value();
return $callable($value);
}
public function class(): string
return get_class($this->value());
public function equals(ValueInterface $item, bool $strict = true): bool
return $this->hash() === $item->hash();
public function type(): string
return 'object';