for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of questocat/laravel-referral package.
*
* (c) questocat <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Tests\Stubs;
use ArrayAccess;
class ApplicationStub implements ArrayAccess
{
protected $attributes = [];
public function setAttributes($attributes)
$this->attributes = $attributes;
}
public function instance($key, $instance)
$this->attributes[$key] = $instance;
public function offsetExists($offset)
return isset($this->attributes[$offset]);
public function offsetGet($key)
return $this->attributes[$key];
public function offsetSet($key, $value)
$this->attributes[$key] = $value;
public function offsetUnset($key)
unset($this->attributes[$key]);