/** * Clone the object */ public function __clone() { parent::__clone(); $this->style = clone $this->style; }