public function hasAllowedType($value)
    {
        if (!$this->forceType) {
            return true;
        }

        return Type::is($value, $this->forceType);
    }
public function hasAllowedType($value)
    {
        if (!$this->forceType) {
            return true;
        }

        return Type::is($value, $this->forceType);
    }
public function hasAllowedType ( $ value ) { if ( ! $ this -> forceType ) { return true ; } return Type :: is ( $ value , $ this -> forceType ) ; }
Does the actual type checks.

@param mixed $value

@return bool
Does the actual type checks .