FOF30\Hal\Link::check PHP Метод

check() публичный Метод

Is this a valid link? Checks the existence of required fields, not their values.
public check ( ) : boolean
Результат boolean
    public function check()
    {
        return !empty($this->_href);
    }

Usage Example

Пример #1
0
 /**
  * @dataProvider	getTestCheckData
  * @covers			FOF30\Hal\Link::check
  */
 public function testCheck($href, $templated, $expect, $message)
 {
     $halLink = new Link($href, $templated);
     $this->assertEquals($expect, $halLink->check(), $message);
 }