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

offsetGet() 공개 메소드

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

Usage Example

예제 #1
0
 /**
  * Gets the value in a particular position in the ArrayAccess object
  *
  * @param string|integer $key
  *
  * @return Subject
  */
 public function offsetGet($key)
 {
     return $this->object->offsetGet($key);
 }