original_string: public function init($data = null)
      {
          if ($this->initialized) {
              return $this;
          }
  
          if (is_null($data)) {
              $data = $this->fetchData();
          }
  
          if ($this->isInitialized($data)) {
              $this->initialized = true;
          }
  
          $this->data = $data;
          if ($this->initialized) {
              $this->onData($data);
          }
  
          return $this;
      }
code: public function init($data = null)
      {
          if ($this->initialized) {
              return $this;
          }
  
          if (is_null($data)) {
              $data = $this->fetchData();
          }
  
          if ($this->isInitialized($data)) {
              $this->initialized = true;
          }
  
          $this->data = $data;
          if ($this->initialized) {
              $this->onData($data);
          }
  
          return $this;
      }
code_tokens: public function init ( $ data = null ) { if ( $ this -> initialized ) { return $ this ; } if ( is_null ( $ data ) ) { $ data = $ this -> fetchData ( ) ; } if ( $ this -> isInitialized ( $ data ) ) { $ this -> initialized = true ; } $ this -> data = $ data ; if ( $ this -> initialized ) { $ this -> onData ( $ data ) ; } return $ this ; }
docstring: Load data onto this object. Chainable method.
  
  @param \stdClass|QuiteSimpleXMLElement $data
  
  @return $this
docstring_tokens: Load data onto this object . Chainable method .