title: Command pattern + pagination
body: <p>I have some command which is used to get some collection of objects.</p>
  
  <pre><code>&lt;?php
  
  declare(strict_types=1);
  
  namespace App\Domain\Query;
  
  class GetCardsByNetworkId
  {
      /**
       * @var int
       */
      private $network_id;
  
      public function __construct(int $network_id)
      {
          $this-&gt;network_id = $network_id;
      }
  
      public function network_id(): int
      {
          return $this-&gt;network_id;
      }
  }
  </code></pre>
  
  <p>but I need pagination on results.</p>
  
  <p>For now I placed pagination as parameter to handle method as below but I feel that handle should only have one parameter - Command.</p>
  
  <pre><code>&lt;?php
  
  declare(strict_types=1);
  
  namespace App\Domain\Query;
  
  use App\Projection\Card\CardFinder;
  
  class GetCardsByNetworkIdHandler
  {
      /**
       * @var CardFinder
       */
      private $cardFinder;
  
      public function __construct(CardFinder $cardFinder)
      {
          $this-&gt;cardFinder = $cardFinder;
      }
  
      public function handle(GetCardsByNetworkId $query, int $itemsPerPage, int $page)
      {
          $card = $this-&gt;cardFinder-&gt;findAllForNetworkId($query-&gt;network_id(), $itemsPerPage, $page);
  
          return $card;
      }
  }
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>How to do that correct? Should I place pagination params to my command?</p>