...
 
Commits (2)
...@@ -28,7 +28,7 @@ class ProcessedRules ...@@ -28,7 +28,7 @@ class ProcessedRules
private $dateRule; private $dateRule;
/** /**
* rule that defines rule on prices * rule that defines rule on prices
* @var ProcessedPriceRule * @var null|ProcessedPriceRule
*/ */
private $priceRule; private $priceRule;
/** /**
...@@ -43,12 +43,12 @@ class ProcessedRules ...@@ -43,12 +43,12 @@ class ProcessedRules
private $itemRule; private $itemRule;
/** /**
* summarizes all rules matching, true if all rules are matched * summarizes all rules matching, true if all rules are matched
* @var bool * @var null|bool
*/ */
private $allRulesMatched; private $allRulesMatched;
/** /**
* total price of items that matched ItemRule * total price of items that matched ItemRule
* @var float * @var null|float
*/ */
private $totalPriceOfMatchedItems; private $totalPriceOfMatchedItems;
...@@ -101,17 +101,17 @@ class ProcessedRules ...@@ -101,17 +101,17 @@ class ProcessedRules
} }
/** /**
* @return ProcessedPriceRule * @return null|ProcessedPriceRule
*/ */
public function getPriceRule(): ProcessedPriceRule public function getPriceRule(): ?ProcessedPriceRule
{ {
return $this->priceRule; return $this->priceRule;
} }
/** /**
* @param ProcessedPriceRule $priceRule * @param ?ProcessedPriceRule $priceRule
*/ */
public function setPriceRule(ProcessedPriceRule $priceRule): void public function setPriceRule(?ProcessedPriceRule $priceRule): void
{ {
$this->priceRule = $priceRule; $this->priceRule = $priceRule;
} }
...@@ -165,21 +165,21 @@ class ProcessedRules ...@@ -165,21 +165,21 @@ class ProcessedRules
} }
/** /**
* @return float * @return null\float
*/ */
public function getTotalPriceOfMatchedItems(): float public function getTotalPriceOfMatchedItems(): ?float
{ {
return $this->totalPriceOfMatchedItems; return $this->totalPriceOfMatchedItems;
} }
/** /**
* @param float $totalPriceOfMatchedItems * @param null\float $totalPriceOfMatchedItems
*/ */
public function setTotalPriceOfMatchedItems(float $totalPriceOfMatchedItems): void public function setTotalPriceOfMatchedItems(?float $totalPriceOfMatchedItems): void
{ {
$this->totalPriceOfMatchedItems = $totalPriceOfMatchedItems; $this->totalPriceOfMatchedItems = $totalPriceOfMatchedItems;
} }
} }
\ No newline at end of file