web/lib/Exceptions/InvalidGitCommitCreatedDatetimeException.php
2024-11-04 13:16:56 -06:00

13 lines
425 B
PHP

<?
namespace Exceptions;
use Safe\DateTimeImmutable;
class InvalidGitCommitCreatedDatetimeException extends AppException{
/** @var string $message */
protected $message = 'Invalid GitCommit Created datetime.';
public function __construct(DateTimeImmutable $createdDatetime){
$this->message = 'Invalid GitCommit Created datetime. ' . $createdDatetime->format('Y-m-d') . ' is after ' . NOW->format('Y-m-d') . '.';
}
}