PhpSpec\Wrapper\Subject::offsetSet PHP Method

offsetSet() public method

public offsetSet ( string | integer $key, mixed $value )
$key string | integer
$value mixed
    public function offsetSet($key, $value)
    {
        $this->arrayAccess->offsetSet($key, $value);
    }

Usage Example

コード例 #1
0
ファイル: ObjectBehavior.php プロジェクト: phpspec/phpspec
 /**
  * Sets the value in a particular position in the ArrayAccess object
  *
  * @param string|integer $key
  * @param mixed          $value
  */
 public function offsetSet($key, $value)
 {
     $this->object->offsetSet($key, $value);
 }