Exemple #1
0
 public function testEquals()
 {
     $value = 'test';
     $t1 = new Text($value);
     $t2 = new Text($value);
     $this->assertTrue($t1->equals($t2));
     $this->assertFalse($t1->equals(null));
 }
 public function getByShortName(Text $name)
 {
     foreach ($this->collection as $param) {
         if ($name->equals($param->short_name)) {
             return $param;
         }
     }
 }
Exemple #3
0
 public function getByShortName(Text $name)
 {
     foreach ($this->collection as $opt) {
         if ($name->equals($opt->short_name)) {
             return $opt;
         }
     }
 }