mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-13 12:33:52 +01:00
30 lines
412 B
PHP
30 lines
412 B
PHP
<?php
|
|
|
|
namespace Carbon;
|
|
|
|
use DateInterval;
|
|
use DateTimeInterface;
|
|
use DateTimeZone;
|
|
|
|
if (class_exists('Carbon\Carbon')) {
|
|
return;
|
|
}
|
|
|
|
class Carbon extends \DateTime
|
|
{
|
|
public static function now(): self
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
public static function today(): self
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
public function subDays(int $days): self
|
|
{
|
|
return $this;
|
|
}
|
|
}
|