src/JsonApiParser.php
public function parse(array $input)
    {
        $this->data = Arr::get($input, 'data');

        if ($this->data === null) {
            return null;
        }

        $this->included = Arr::get($input, 'included', []);
        $this->start();

        return $this->resolver->getResolved();
    }
public function parse(array $input)
    {
        $this->data = Arr::get($input, 'data');

        if ($this->data === null) {
            return null;
        }

        $this->included = Arr::get($input, 'included', []);
        $this->start();

        return $this->resolver->getResolved();
    }
public function parse ( array $ input ) { $ this -> data = Arr :: get ( $ input , 'data' ) ; if ( $ this -> data === null ) { return null ; } $ this -> included = Arr :: get ( $ input , 'included' , [ ] ) ; $ this -> start ( ) ; return $ this -> resolver -> getResolved ( ) ; }
Parse the data given

Returns all the models that were resolved.

@param array $input
@return \Drp\JsonApiParser\ResolvedCollection|null
@throws \ReflectionException
@throws \Drp\JsonApiParser\Exceptions\MissingResolverException
Parse the data given