mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 22:01:48 +00:00
18 lines
272 B
PHP
18 lines
272 B
PHP
<?php
|
|
|
|
namespace Wearepixel\Cart;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
class ItemAttributeCollection extends Collection
|
|
{
|
|
public function __get($name)
|
|
{
|
|
if ($this->has($name)) {
|
|
return $this->get($name);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|