| @@ 940-950 (lines=11) @@ | ||
| 937 | * @throws ReflectionException |
|
| 938 | * @since 4.9.80.p |
|
| 939 | */ |
|
| 940 | protected function decreaseSoldForDatetimes($qty = 1, array $datetimes = []) |
|
| 941 | { |
|
| 942 | $datetimes = ! empty($datetimes) ? $datetimes : $this->datetimes(); |
|
| 943 | if (is_array($datetimes)) { |
|
| 944 | foreach ($datetimes as $datetime) { |
|
| 945 | if ($datetime instanceof EE_Datetime) { |
|
| 946 | $datetime->decreaseSold($qty); |
|
| 947 | } |
|
| 948 | } |
|
| 949 | } |
|
| 950 | } |
|
| 951 | ||
| 952 | ||
| 953 | /** |
|
| @@ 1120-1128 (lines=9) @@ | ||
| 1117 | * @throws InvalidInterfaceException |
|
| 1118 | * @since 4.9.80.p |
|
| 1119 | */ |
|
| 1120 | protected function decreaseReservedForDatetimes($qty = 1, array $datetimes = []) |
|
| 1121 | { |
|
| 1122 | $datetimes = ! empty($datetimes) ? $datetimes : $this->datetimes(); |
|
| 1123 | foreach ($datetimes as $datetime) { |
|
| 1124 | if ($datetime instanceof EE_Datetime) { |
|
| 1125 | $datetime->decreaseReserved($qty); |
|
| 1126 | } |
|
| 1127 | } |
|
| 1128 | } |
|
| 1129 | ||
| 1130 | ||
| 1131 | /** |
|