for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace drupol\valuewrapper\Type;
use drupol\valuewrapper\AbstractValue;
use drupol\valuewrapper\ValueInterface;
abstract class TypeValue extends AbstractValue
{
/**
* {@inheritdoc}
*/
public function hash(): string
return $this->doHash($this->getType() . $this->get());
}
public function getType()
return \gettype($this->get());
public function equals(ValueInterface $item, $strict = true) : bool
return ($strict === true) ?
$this === $item:
$this == $item;