src/DataType/Registry.php
public function getTypeForValue($value) : string
    {
        foreach ($this->handlers as $type => $handler) {
            if ($handler->canHandleValue($value)) {
                return $type;
            }
        }

        throw DataTypeException::handlerNotFoundForValue($value);
    }
public function getTypeForValue($value) : string
    {
        foreach ($this->handlers as $type => $handler) {
            if ($handler->canHandleValue($value)) {
                return $type;
            }
        }

        throw DataTypeException::handlerNotFoundForValue($value);
    }
public function getTypeForValue ( $ value ) : string { foreach ( $ this -> handlers as $ type => $ handler ) { if ( $ handler -> canHandleValue ( $ value ) ) { return $ type ; } } throw DataTypeException :: handlerNotFoundForValue ( $ value ) ; }
Find a data type Handler that is able to operate on the value, return the type identifier associated with it.

@param mixed $value

@throws DataTypeException if no handler can handle the value.

@return string
Find a data type Handler that is able to operate on the value return the type identifier associated with it .