public function execute($command, callable $next)
    {
        if (!($command instanceof TransferObjectCommand)) {
            return $next($command);
        }

        $object = $command->getPayload();

        $this->validator->validate($object);

        return $next($command);
    }
public function execute($command, callable $next)
    {
        if (!($command instanceof TransferObjectCommand)) {
            return $next($command);
        }

        $object = $command->getPayload();

        $this->validator->validate($object);

        return $next($command);
    }
@param mixed    $command
@param callable $next

@return mixed