toArray() 공개 메소드

returns the Object as associated array
public toArray ( ) : array
리턴 array
예제 #1
0
 /**
  * returns the Object as associated array
  * @return array
  */
 public function toArray()
 {
     if ($this->rootElement instanceof CanConvertToArray) {
         return array('currentTime' => $this->request_time, 'cachedUntil' => $this->cached_until, 'result' => $this->rootElement->toArray());
     } else {
         return array();
     }
 }