PhpSpec\Wrapper\Subject::offsetExists PHP Method

offsetExists() public method

public offsetExists ( string | integer $key ) : Subject
$key string | integer
return Subject
    public function offsetExists($key)
    {
        return $this->wrap($this->arrayAccess->offsetExists($key));
    }

Usage Example

コード例 #1
0
ファイル: ObjectBehavior.php プロジェクト: phpspec/phpspec
 /**
  * Checks if a key exists in case object implements ArrayAccess
  *
  * @param string|integer $key
  *
  * @return Subject
  */
 public function offsetExists($key)
 {
     return $this->object->offsetExists($key);
 }