Completed
Push — master ( 9a2061...9f070b )
by Andrii
06:46
created
src/charge/modifiers/Leasing.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@  discard block
 block discarded – undo
73 73
         return new Target(Target::ANY, Target::ANY);
74 74
     }
75 75
 
76
+    /**
77
+     * @param string $dummy
78
+     */
76 79
     public function till($dummy)
77 80
     {
78 81
         throw new \Exception('till can not be defined for leasing');
@@ -98,6 +101,9 @@  discard block
 block discarded – undo
98 101
         return [$charge];
99 102
     }
100 103
 
104
+    /**
105
+     * @return DateTimeImmutable
106
+     */
101 107
     protected function countPeriodsPassed(DateTimeImmutable $time)
102 108
     {
103 109
         $since = $this->getSince();
Please login to merge, or discard this patch.
tests/unit/charge/modifiers/LeasingTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 {
24 24
     protected $reason = 'test reason string';
25 25
 
26
+    /**
27
+     * @param string $term
28
+     */
26 29
     protected function buildLeasing($term)
27 30
     {
28 31
         $month = (new DateTimeImmutable())->modify('first day of this month midnight');
Please login to merge, or discard this patch.