Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function createFromPurchasableEntity(PurchasableEntityInterface $entity, array $values = [])
 {
     $values += ['type' => $entity->getLineItemTypeId(), 'title' => $entity->getLineItemTitle(), 'purchased_entity' => $entity];
     return self::create($values);
 }