コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
ファイル: HashSetTest.php プロジェクト: robo47/BlazeFramework
 public function testToArray()
 {
     // Remove the following lines when you implement this test.
     $this->assertTrue(\is_array($this->object->toArray()));
 }