public function setParent($parent){

            $this->parent = $parent;

            if($this->parentCallback){
                call_user_func($this->parentCallback);
            }

            return $this;

        }
public function setParent($parent){

            $this->parent = $parent;

            if($this->parentCallback){
                call_user_func($this->parentCallback);
            }

            return $this;

        }
public function setParent ( $ parent ) { $ this -> parent = $ parent ; if ( $ this -> parentCallback ) { call_user_func ( $ this -> parentCallback ) ; } return $ this ; }
Set the parent

@param mixed $parent

@return self
Set the parent