DateTimePlus::__clone

public DateTimePlus::__clone()

Implements the magic __clone method.

Deep-clones the DateTime object we're wrapping.

File

core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 356

Class

DateTimePlus
Wraps DateTime().

Namespace

Drupal\Component\Datetime

Code

public function __clone() {
  $this->dateTimeObject = clone($this->dateTimeObject);
}
doc_Drupal
2016-10-29 09:01:04
Comments
Leave a Comment

Please login to continue.