| Conditions | 3 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __construct( string $time = 'now', ?DateTimeZone $timezone = null ) { |
||
| 17 | if ( $timezone && $timezone->getName() !== self::TIMEZONE ) { |
||
| 18 | throw new \InvalidArgumentException( sprintf( 'CampaignDates must have time zone "%s".', self::TIMEZONE ) ); |
||
| 19 | } |
||
| 20 | parent::__construct( $time, new DateTimeZone( self::TIMEZONE ) ); |
||
| 21 | } |
||
| 32 |