/**
  * Retrieve a set of classes used in this interface
  *
  * @return  remote.ClassReference[]
  */
 public function classSet()
 {
     $set = new HashSet();
     for ($i = 0; $i < $this->methods->length; $i++) {
         $set->addAll($this->methods[$i]->classSet());
     }
     return $set->toArray();
 }
 /**
  * Retrieve a set of classes used in this interface
  *
  * @return  remote.ClassReference[]
  */
 public function classSet()
 {
     $set = new HashSet();
     foreach (array_keys($this->fields) as $name) {
         if (!$this->fields[$name] instanceof ClassReference) {
             continue;
         }
         $set->add($this->fields[$name]);
     }
     return $set->toArray();
 }
Example #3
0
 public function testToArray()
 {
     // Remove the following lines when you implement this test.
     $this->assertTrue(\is_array($this->object->toArray()));
 }