public function handle(CommandInterface $command)
    {
        /**
         * @var Order $order
         */
        $order = $command->getPayload();

        $identity = $this->identityService->findOneBy([
            'objectIdentifier' => $order->getIdentifier(),
            'objectType' => Order::TYPE,
            'adapterName' => PlentymarketsAdapter::NAME,
        ]);

        if ($identity !== null) {
            return true;
        }

        if ($this->isExistingOrder($order)) {
            return true;
        }

        $result = $this->handleOrder($order);

        if ($result) {
            $this->handleComments($order);
        }

        return true;
    }
public function handle(CommandInterface $command)
    {
        /**
         * @var Order $order
         */
        $order = $command->getPayload();

        $identity = $this->identityService->findOneBy([
            'objectIdentifier' => $order->getIdentifier(),
            'objectType' => Order::TYPE,
            'adapterName' => PlentymarketsAdapter::NAME,
        ]);

        if ($identity !== null) {
            return true;
        }

        if ($this->isExistingOrder($order)) {
            return true;
        }

        $result = $this->handleOrder($order);

        if ($result) {
            $this->handleComments($order);
        }

        return true;
    }
{@inheritdoc}

@var TransferObjectCommand $command