lib/DataModel.php
protected function getNullableDataModel($type, $shallow, $object, ...$properties)
    {
        $object = $this->getNullable($object, ...$properties);
        if ($object == null) {
            return null;
        }

        return $this->getDataModel($object, $type, $shallow);
    }
protected function getNullableDataModel($type, $shallow, $object, ...$properties)
    {
        $object = $this->getNullable($object, ...$properties);
        if ($object == null) {
            return null;
        }

        return $this->getDataModel($object, $type, $shallow);
    }
protected function getNullableDataModel ( $ type , $ shallow , $ object , ... $ properties ) { $ object = $ this -> getNullable ( $ object , ... $ properties ) ; if ( $ object == null ) { return null ; } return $ this -> getDataModel ( $ object , $ type , $ shallow ) ; }
Returns a data object that can be a null
@param $type
@param $shallow
@param $object
@param array ...$properties
@return mixed|null
Returns a data object that can be a null