Neomerx\JsonApi\Encoder\Parser\Parser::parse PHP Méthode

parse() public méthode

public parse ( $data )
    public function parse($data)
    {
        $this->stack = $this->stackFactory->createStack();
        $rootFrame = $this->stack->push();
        $rootFrame->setRelationship($this->schemaFactory->createRelationshipObject(null, $data, [], null, true, true));
        foreach ($this->parseData() as $parseReply) {
            (yield $parseReply);
        }
        $this->stack = null;
    }