Adapter/PlentymarketsAdapter/ResponseParser/OrderStatus/OrderStatusResponseParser.php
public function parse(array $entry)
    {
        if (empty($entry['id'])) {
            $entry['id'] = $entry['statusId'];
        }

        if (empty($entry['id'])) {
            return null;
        }

        $identity = $this->identityService->findOneOrCreate(
            (string) $entry['id'],
            PlentymarketsAdapter::NAME,
            OrderStatus::TYPE
        );

        return OrderStatus::fromArray([
            'identifier' => $identity->getObjectIdentifier(),
            'name' => $this->getName($entry),
        ]);
    }
public function parse(array $entry)
    {
        if (empty($entry['id'])) {
            $entry['id'] = $entry['statusId'];
        }

        if (empty($entry['id'])) {
            return null;
        }

        $identity = $this->identityService->findOneOrCreate(
            (string) $entry['id'],
            PlentymarketsAdapter::NAME,
            OrderStatus::TYPE
        );

        return OrderStatus::fromArray([
            'identifier' => $identity->getObjectIdentifier(),
            'name' => $this->getName($entry),
        ]);
    }
public function parse ( array $ entry ) { if ( empty ( $ entry [ 'id' ] ) ) { $ entry [ 'id' ] = $ entry [ 'statusId' ] ; } if ( empty ( $ entry [ 'id' ] ) ) { return null ; } $ identity = $ this -> identityService -> findOneOrCreate ( ( string ) $ entry [ 'id' ] , PlentymarketsAdapter :: NAME , OrderStatus :: TYPE ) ; return OrderStatus :: fromArray ( [ 'identifier' => $ identity -> getObjectIdentifier ( ) , 'name' => $ this -> getName ( $ entry ) , ] ) ; }
{@inheritdoc}
{