You are here

public function CommerceDiscount::__construct in Commerce Discount 7

Overrides Entity::__construct

File

includes/commerce_discount.class.inc, line 51
Commerce Discount Entity.

Class

CommerceDiscount
Entity class representing the commerce_discount entity type.

Code

public function __construct($values = array()) {
  parent::__construct($values, 'commerce_discount');
  $this->component_title = $this
    ->getTranslation('component_title');
}