diff --git a/core/lib/Thelia/Core/Event/CustomRefEvent.php b/core/lib/Thelia/Core/Event/CustomRefEvent.php new file mode 100644 index 000000000..15113c218 --- /dev/null +++ b/core/lib/Thelia/Core/Event/CustomRefEvent.php @@ -0,0 +1,53 @@ +. */ +/* */ +/*************************************************************************************/ +namespace Thelia\Core\Event; + + +use Symfony\Component\EventDispatcher\Event; +use Thelia\Model\Customer; + +class CustomRefEvent extends Event { + protected $ref; + public $customer; + + + public function __construct(Customer $customer) + { + $this->customer = $customer; + } + + public function hasRef() + { + return null !== $this->ref; + } + + public function getRef() + { + return $this->ref; + } + + public function setRef($ref) + { + $this->ref = $ref; + } +} \ No newline at end of file