public function DateTimePlus::__clone in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::__clone()
Implements the magic __clone method.
Deep-clones the DateTime object we're wrapping.
File
- lib/
Drupal/ Component/ Datetime/ DateTimePlus.php, line 318 - Contains \Drupal\Component\Datetime\DateTimePlus.
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function __clone() {
$this->dateTimeObject = clone $this->dateTimeObject;
}