Esempio n. 1
0
 /**
  * Call this method on a document if you're done using it.
  *
  * It's intended to remove all circular references, so PHP can easily clean
  * it up.
  *
  * @return void
  */
 function destroy()
 {
     parent::destroy();
     foreach ($this->children as $childGroup) {
         foreach ($childGroup as $child) {
             $child->destroy();
         }
     }
     $this->children = [];
 }
Esempio n. 2
0
 /**
  * Call this method on a document if you're done using it.
  *
  * It's intended to remove all circular references, so PHP can easily clean
  * it up.
  *
  * @return void
  */
 function destroy()
 {
     parent::destroy();
     foreach ($this->parameters as $param) {
         $param->destroy();
     }
     $this->parameters = [];
 }