commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
DayOfMonthScheduleBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
21final class DayOfMonthScheduleBuilder implements Builder
22{
27 private $day;
28
36 public function getDay()
37 {
38 return $this->day;
39 }
40
45 public function withDay(?int $day)
46 {
47 $this->day = $day;
48
49 return $this;
50 }
51
52
53 public function build(): DayOfMonthSchedule
54 {
55 return new DayOfMonthScheduleModel(
56 $this->day
57 );
58 }
59
60 public static function of(): DayOfMonthScheduleBuilder
61 {
62 return new self();
63 }
64}