PhpSpec\Wrapper\Subject::offsetExists PHP 메소드

offsetExists() 공개 메소드

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

Usage Example

예제 #1
0
 /**
  * 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);
 }