public function SmsTestTime::__construct in SMS Framework 2.x
Same name and namespace in other branches
- 2.1.x tests/modules/sms_test_time/src/SmsTestTime.php \Drupal\sms_test_time\SmsTestTime::__construct()
SmsTestTime constructor.
Parameters
\Drupal\Component\Datetime\TimeInterface $original: Original time service.
File
- tests/
modules/ sms_test_time/ src/ SmsTestTime.php, line 34
Class
- SmsTestTime
- Time service with a predictable time.
Namespace
Drupal\sms_test_timeCode
public function __construct(TimeInterface $original) {
$this->original = $original;
$this->date = new \DateTimeImmutable('2:30pm 17 October 1997', new \DateTimeZone('UTC'));
}