/** * Return the data of this content. * * @param string $var The element to be return, if NULL, all datas are returned * @param Boolean $forceArray Force the return as array * * @return mixed Could be either one or array of scalar, array, AbstractClassContent instance * @throws \BackBee\ClassContent\Exception\UnknownPropertyException Occurs when $var does not match an element * @throws \BackBee\AutoLoader\Exception\ClassNotFoundException Occurs if the class of a subcontent can not be loaded * @codeCoverageIgnore */ public function getData($var = null, $forceArray = false) { return null !== $this->getDraft() ? $this->getDraft()->getData($var, $forceArray) : parent::getData($var, $forceArray); }