public function setDataObjectClass($class)
    {
        if (!$class) {
            throw new InvalidArgumentException("Missing class provided");
        }

        if (!class_exists($class)) {
            throw new InvalidArgumentException("Non-existent classname \"{$class}\"");
        }

        if (!is_subclass_of($class, DataObject::class)) {
            throw new InvalidArgumentException("\"{$class}\" is not a DataObject subclass");
        }

        $this->dataObjectClass = $class;
        return $this;
    }
public function setDataObjectClass($class)
    {
        if (!$class) {
            throw new InvalidArgumentException("Missing class provided");
        }

        if (!class_exists($class)) {
            throw new InvalidArgumentException("Non-existent classname \"{$class}\"");
        }

        if (!is_subclass_of($class, DataObject::class)) {
            throw new InvalidArgumentException("\"{$class}\" is not a DataObject subclass");
        }

        $this->dataObjectClass = $class;
        return $this;
    }
public function setDataObjectClass ( $ class ) { if ( ! $ class ) { throw new InvalidArgumentException ( "Missing class provided" ) ; } if ( ! class_exists ( $ class ) ) { throw new InvalidArgumentException ( "Non-existent classname \"{$class}\"" ) ; } if ( ! is_subclass_of ( $ class , DataObject :: class ) ) { throw new InvalidArgumentException ( "\"{$class}\" is not a DataObject subclass" ) ; } $ this -> dataObjectClass = $ class ; return $ this ; }
Sets the DataObject name
@param string $class
@return $this
Sets the DataObject name