Location: PHPKode > scripts > Recursive reference serialize > recursive-reference-serialize/TSClass1.php
<?php
class TSClass1 implements Serializable{   
  public function serialize(){  
    include "serialize-object-by-manager.php";
    return $serialized;
  }
  public function unserialize($serialized){
    include "unserialize-object-by-manager.php";
  }
  public function postUnserializedByManager(){
    include "post-serialize-by-manager.php";
  } 
}

class TSClass2 implements Serializable{   
  public function serialize(){  
    include "serialize-object-by-manager.php";
    return $serialized;
  }
  public function unserialize($serialized){
    include "unserialize-object-by-manager.php";
  }
  public function postUnserializedByManager(){
    include "post-serialize-by-manager.php";
  }  
  private $_ref2;
  public function setRef2($value){
  	$this->_ref2 = $value;
  } 
}
?>
Return current item: Recursive reference serialize