Neomerx\JsonApi\Encoder\Parser\Parser::parse PHP Method

parse() public method

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;
    }