mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-19 22:05:18 +00:00
Initial commit
This commit is contained in:
22
src/Gloudemans/Shoppingcart/CartRowOptionsCollection.php
Normal file
22
src/Gloudemans/Shoppingcart/CartRowOptionsCollection.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php namespace Gloudemans\Shoppingcart;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class CartRowOptionsCollection extends Collection {
|
||||
|
||||
public function __construct($items)
|
||||
{
|
||||
parent::__construct($items);
|
||||
}
|
||||
|
||||
public function __get($arg)
|
||||
{
|
||||
if($this->has($arg))
|
||||
{
|
||||
return $this->get($arg);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user