src/Core/Application/Command/Application/CalculationPayments/CalculationPaymentsCommand.php line 13

  1. <?php
  2.     
  3.     namespace App\Core\Application\Command\Application\CalculationPayments;
  4.     
  5.     use App\Core\Domain\Model;
  6.     /**
  7.      * Пересчет сум оплат клиентов по приложению
  8.      *
  9.      * Class CalculationPaymentsCommand
  10.      * @package App\Core\Application\Command\Application\CalculationPayments
  11.      */
  12.     final class CalculationPaymentsCommand
  13.     {
  14.     
  15.         /**
  16.          * @var Model\Insales\Application
  17.          */
  18.         private Model\Insales\Application $application;
  19.     
  20.         /**
  21.          * @var Model\Insales\Client
  22.          */
  23.         private ?Model\Insales\Client $client null;
  24.     
  25.         /**
  26.          * @param Model\Insales\Application $application
  27.          */
  28.         public function __construct(Model\Insales\Application $application)
  29.         {
  30.             $this->application $application;
  31.         }
  32.     
  33.         /**
  34.          * @return Model\Insales\Application
  35.          */
  36.         public function getApplication(): Model\Insales\Application
  37.         {
  38.             return $this->application;
  39.         }
  40.     
  41.         /**
  42.          * @return Model\Insales\Client
  43.          */
  44.         public function getClient(): ?Model\Insales\Client
  45.         {
  46.             return $this->client;
  47.         }
  48.     
  49.         /**
  50.          * @param Model\Insales\Client $client
  51.          * @return CalculationPaymentsCommand
  52.          */
  53.         public function setClient(?Model\Insales\Client $client): CalculationPaymentsCommand
  54.         {
  55.             $this->client $client;
  56.             return $this;
  57.         }
  58.     }