* @link http://cakephp.org CakePHP(tm) Project * @license http://www.opensource.org/licenses/mit-license.php MIT License */ namespace Cake\Chronos\Traits; /** * Provides methods for copying datetime objects. * * Expects that implementing classes provide a static `instance()` method. */ trait CopyTrait { /** * Get a copy of the instance * * @return static */ public function copy() { return static::instance($this); } }