/**
  * {@inheritdoc}
  */
 public function serialize()
 {
     // Calling the parent method is safer than trying to optimize out the extra
     // function calls.
     $data = unserialize(parent::serialize());
     $data['fit'] = $this->fit;
     $data['patternOutline'] = $this->patternOutline;
     $data['numParts'] = $this->numParts;
     return serialize($data);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function serialize()
 {
     $data = unserialize(parent::serialize());
     $data['fit'] = $this->fit;
     $data['patternOutline'] = $this->patternOutline;
     $data['numParts'] = $this->numParts;
     return serialize($data);
 }