GraphQL\Examples\Blog\Type\CommentType::parent PHP Метод

parent() публичный Метод

public parent ( Comment $comment )
$comment GraphQL\Examples\Blog\Data\Comment
    public function parent(Comment $comment)
    {
        if ($comment->parentId) {
            return DataSource::findComment($comment->parentId);
        }
        return null;
    }