for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace GenericCollections\Traits;
use GenericCollections\Utils\TypeProperty;
/**
* Trait KeyTypeProperty.
* Used in: Maps
*
* @package GenericCollections\Traits
*/
trait KeyTypeProperty
{
* @var TypeProperty
private $keyType;
public function getKeyType()
return (string) $this->keyType;
}
public function checkKeyType($element)
return $this->keyType->check($element);