public function setStore($store) { if ($store != null) { // not optimal, probably should be in parent parent::setStore($store); $this->__revokeToken(); } }
public function __construct($product, $store, $designs = array()) { $this->__product = $product; parent::__construct($store); if (!empty($designs)) { $this->__designs = $designs; $this->addDesigns(); } }
public function __construct($imagePath, $store) { $this->__imagePath = $imagePath; parent::__construct($store); $this->create(); }
public function __construct($merchandiseId, $store) { $this->__merchandiseId = $merchandiseId; parent::__construct($store); $this->create(); }