public function getAcceptedType($var)
    {
        $accepts = ($this->getAccept());
        if (isset($accepts[$var]) && !empty($accepts[$var])) {
            return reset($accepts[$var]);
        } else {
            throw new ClassContentException(
                sprintf('Unknown element %s in %s.', $var, get_class($this)),
                ClassContentException::UNKNOWN_PROPERTY
            );
        }
    }
public function getAcceptedType($var)
    {
        $accepts = ($this->getAccept());
        if (isset($accepts[$var]) && !empty($accepts[$var])) {
            return reset($accepts[$var]);
        } else {
            throw new ClassContentException(
                sprintf('Unknown element %s in %s.', $var, get_class($this)),
                ClassContentException::UNKNOWN_PROPERTY
            );
        }
    }
public function getAcceptedType ( $ var ) { $ accepts = ( $ this -> getAccept ( ) ) ; if ( isset ( $ accepts [ $ var ] ) && ! empty ( $ accepts [ $ var ] ) ) { return reset ( $ accepts [ $ var ] ) ; } else { throw new ClassContentException ( sprintf ( 'Unknown element %s in %s.' , $ var , get_class ( $ this ) ) , ClassContentException :: UNKNOWN_PROPERTY ) ; } }
Check if a variable is part of accepted types

@param mixed $var the variable to be checked

@return boolean|ClassContentException
Check if a variable is part of accepted types