private function resolveObject($source, array $args, string $fieldName)
    {
        $getter = $this->getGetter($source, $fieldName);
        if ($getter) {
            $args = $this->orderArguments($getter, $args);

            return $getter->invoke($source, ...$args);
        }

        if (isset($source->{$fieldName})) {
            return $source->{$fieldName};
        }

        return null;
    }
private function resolveObject($source, array $args, string $fieldName)
    {
        $getter = $this->getGetter($source, $fieldName);
        if ($getter) {
            $args = $this->orderArguments($getter, $args);

            return $getter->invoke($source, ...$args);
        }

        if (isset($source->{$fieldName})) {
            return $source->{$fieldName};
        }

        return null;
    }
private function resolveObject ( $ source , array $ args , string $ fieldName ) { $ getter = $ this -> getGetter ( $ source , $ fieldName ) ; if ( $ getter ) { $ args = $ this -> orderArguments ( $ getter , $ args ) ; return $ getter -> invoke ( $ source , ... $ args ) ; } if ( isset ( $ source -> { $ fieldName } ) ) { return $ source -> { $ fieldName } ; } return null ; }
Resolve for an object

@param mixed $source
@param array $args
@param string $fieldName

@return mixed
Resolve for an object