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
            );
        }
    }