@@ 866-876 (lines=11) @@ | ||
863 | * @throws InvalidInterfaceException |
|
864 | * @throws ReflectionException |
|
865 | */ |
|
866 | protected function decreaseSoldForDatetimes($qty = 1, array $datetimes = []) |
|
867 | { |
|
868 | $datetimes = ! empty($datetimes) ? $datetimes : $this->datetimes(); |
|
869 | if (is_array($datetimes)) { |
|
870 | foreach ($datetimes as $datetime) { |
|
871 | if ($datetime instanceof EE_Datetime) { |
|
872 | $datetime->decreaseSold($qty); |
|
873 | } |
|
874 | } |
|
875 | } |
|
876 | } |
|
877 | ||
878 | ||
879 | /** |
|
@@ 1044-1052 (lines=9) @@ | ||
1041 | * @throws InvalidDataTypeException |
|
1042 | * @throws InvalidInterfaceException |
|
1043 | */ |
|
1044 | protected function decreaseReservedForDatetimes($qty = 1, array $datetimes = []) |
|
1045 | { |
|
1046 | $datetimes = ! empty($datetimes) ? $datetimes : $this->datetimes(); |
|
1047 | foreach ($datetimes as $datetime) { |
|
1048 | if ($datetime instanceof EE_Datetime) { |
|
1049 | $datetime->decreaseReserved($qty); |
|
1050 | } |
|
1051 | } |
|
1052 | } |
|
1053 | ||
1054 | ||
1055 | /** |