mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-22 15:15:27 +00:00
Large update for version 2.0
This commit is contained in:
19
src/CartItemOptions.php
Normal file
19
src/CartItemOptions.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Gloudemans\Shoppingcart;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class CartItemOptions extends Collection
|
||||
{
|
||||
/**
|
||||
* Get the option by the given key.
|
||||
*
|
||||
* @param string $key
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
return $this->get($key);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user