PhpSpec\Wrapper\Subject::offsetGet PHP Method

offsetGet() public method

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

Usage Example

Ejemplo n.º 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);
 }