BaseQuery::asObject PHP Method

asObject() public method

Select an item as object
public asObject ( boolean | object $object = true ) : BaseQuery
$object boolean | object If set to true, items are returned as stdClass, otherwise a class name can be passed and a new instance of this class is return. Can be set to false to return items as an associative array.
return BaseQuery
    public function asObject($object = true)
    {
        $this->object = $object;
        return $this;
    }