コード例 #1
0
ファイル: Tag.php プロジェクト: objective-php/html
 /**
  * @param mixed $offset
  *
  * @return bool
  */
 public function offsetExists($offset)
 {
     return $this->attributes->has($offset);
 }
コード例 #2
0
ファイル: AttributesTest.php プロジェクト: objective-php/html
 public function testInitialization()
 {
     $attribs = new Attributes(['x' => 'y']);
     $this->assertTrue($attribs->has('x'));
     $this->assertEquals('y', $attribs['x']);
 }