Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 12, 2017
1 parent 0109e79 commit 786f42c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/CartPositionTrait.php
Expand Up @@ -18,17 +18,25 @@

/**
* CartPositionTrait trait
* It is intended to use this trait in classes, that extends [[Model]].
* It is intended to be used in classes implementing [[CartPositionInterface]].
* Holds:
* - object (model) and ID.
* - name and description
* Provides:
* - icon with getIcon() to be redefined in childs
*/
trait CartPositionTrait
{
use \yz\shoppingcart\CartPositionTrait;

/**
* @var Model
* @var Model object being put in cart
*/
protected $_model;

/**
* @var string|int ID of object being put in cart
*/
protected $_id;

public function rules()
Expand Down

0 comments on commit 786f42c

Please sign in to comment.