for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SmartWeb\ModuleTesting\Support\Concerns;
use ArrayAccess;
use Traversable;
/**
* Trait HasAttributes
*
* @package SmartWeb\ModuleTesting\Support
*/
trait HasAttributes
{
* @var array|ArrayAccess
protected $attributes = [];
* @param array|ArrayAccess|Traversable $attributes
protected function setAttributes($attributes = [])
foreach ($attributes as $key => $value) {
$this->attributes[$key] = $value;
}
* @return array|ArrayAccess
public function getAttributes()
return $this->attributes;