From 34d7629c1dda406395cb967a3bac0c0a36d6a2c9 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 2 Jul 2013 17:19:13 +0200 Subject: [PATCH] add untrack file for before commit --- core/lib/Thelia/Core/Event/CustomRefEvent.php | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 core/lib/Thelia/Core/Event/CustomRefEvent.php 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