public final function setEntityClass($str_class)
    {
        if(class_exists($str_class)) {
            if(is_a($str_class, '\\GDS\\Entity', TRUE)) {
                $this->str_entity_class = $str_class;
            } else {
                throw new \InvalidArgumentException('Cannot set an Entity class that does not extend "GDS\Entity": ' . $str_class);
            }
        } else {
            throw new \InvalidArgumentException('Cannot set missing Entity class: ' . $str_class);
        }
        return $this;
    }
public final function setEntityClass($str_class)
    {
        if(class_exists($str_class)) {
            if(is_a($str_class, '\\GDS\\Entity', TRUE)) {
                $this->str_entity_class = $str_class;
            } else {
                throw new \InvalidArgumentException('Cannot set an Entity class that does not extend "GDS\Entity": ' . $str_class);
            }
        } else {
            throw new \InvalidArgumentException('Cannot set missing Entity class: ' . $str_class);
        }
        return $this;
    }
public final function setEntityClass ( $ str_class ) { if ( class_exists ( $ str_class ) ) { if ( is_a ( $ str_class , '\\GDS\\Entity' , TRUE ) ) { $ this -> str_entity_class = $ str_class ; } else { throw new \ InvalidArgumentException ( 'Cannot set an Entity class that does not extend "GDS\Entity": ' . $ str_class ) ; } } else { throw new \ InvalidArgumentException ( 'Cannot set missing Entity class: ' . $ str_class ) ; } return $ this ; }
Set the class to use when instantiating new Entity objects

Must be GDS\Entity, or a sub-class of it

@param $str_class
@return $this
@throws \InvalidArgumentException
Set the class to use when instantiating new Entity objects