src/Api/Query/Base.php
public function toObject(bool $minimal = false)
    {
        $object = new stdClass;

        foreach ($this as $key => $value) {
            if ('_' === substr($key, 0, 1)) {
                continue;
            }

            if ($minimal && !$this->{'_'.$key}) {
                continue;
            }

            $object->$key = $value;
        }

        return $object;
    }
public function toObject(bool $minimal = false)
    {
        $object = new stdClass;

        foreach ($this as $key => $value) {
            if ('_' === substr($key, 0, 1)) {
                continue;
            }

            if ($minimal && !$this->{'_'.$key}) {
                continue;
            }

            $object->$key = $value;
        }

        return $object;
    }
public function toObject ( bool $ minimal = false ) { $ object = new stdClass ; foreach ( $ this as $ key => $ value ) { if ( '_' === substr ( $ key , 0 , 1 ) ) { continue ; } if ( $ minimal && ! $ this -> { '_' . $ key } ) { continue ; } $ object -> $ key = $ value ; } return $ object ; }
{@inheritdoc}
{