mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
10 lines
241 B
PHP
10 lines
241 B
PHP
<?php
|
|
class SomeClass extends \DatePeriod {
|
|
public $interval;
|
|
|
|
public function __construct(int $v) {
|
|
parent::__construct(new \DateTime('2020-12-31'), new \DateInterval("P1Y"), 1);
|
|
$this->interval = $v;
|
|
var_dump($this->interval);
|
|
}
|
|
} |