예제 #1
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['kind'] = static::KIND;
     $data['collection'] = $this->_collection;
     $data['key'] = $this->_key;
     $data['depth'] = $this->_depth;
     return $data;
 }
예제 #2
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['kind'] = static::KIND;
     $data['collection'] = $this->_collection;
     $data['key'] = $this->_key;
     $data['type'] = $this->_type;
     if ($this->getEventClass()->name !== self::$defaultEventClassName) {
         $data['eventClass'] = $this->getEventClass()->name;
     }
     return $data;
 }
예제 #3
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['kind'] = static::KIND;
     $data['collection'] = $this->_collection;
     if ($this->getItemClass()->name !== self::$defaultItemClassName) {
         $data['itemClass'] = $this->getItemClass()->name;
     }
     if ($this->getEventClass()->name !== self::$defaultEventClassName) {
         $data['eventClass'] = $this->getEventClass()->name;
     }
     if ($this->getRelationshipClass()->name !== self::$defaultRelationshipClassName) {
         $data['relationshipClass'] = $this->getRelationshipClass()->name;
     }
     return $data;
 }
예제 #4
0
 public function toArray()
 {
     $data = parent::toArray();
     $data['kind'] = static::KIND;
     return $data;
 }