Ejemplo n.º 1
0
 /** Construct**/
 public function __construct()
 {
     parent::__construct();
     $this->user = new User();
     $this->loginId = $this->generateTimebaseId();
     $this->lastVolume = 50;
 }
Ejemplo n.º 2
0
 /** Constructor **/
 public function __construct()
 {
     parent::__construct();
     $this->memo = '';
     $this->roles = new ArrayCollection();
     $this->loginId = $this->generateTimebaseId();
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  */
 public function __construct($isRandomize = false)
 {
     parent::__construct();
     $this->programItems = new \Doctrine\Common\Collections\ArrayCollection();
     $this->isRandomize = $isRandomize;
     $this->nowPlayingIndex = 0;
 }
Ejemplo n.º 4
0
 /** Constructor **/
 public function __construct()
 {
     parent::__construct();
     $this->courses = new \Doctrine\Common\Collections\ArrayCollection();
     $this->contracts = new \Doctrine\Common\Collections\ArrayCollection();
     $this->product = new Product();
     $this->setEndAt(new \DateTime('9999-12-31'));
 }
Ejemplo n.º 5
0
 /** Constructor **/
 public function __construct($transactionId, $invoice, $agent)
 {
     parent::__construct();
     $this->transactionId = $transactionId;
     $this->invoice = $invoice;
     $this->state = CreditCardTransaction::WAITING_STATE;
     $this->setAgent($agent);
 }
Ejemplo n.º 6
0
 /** Construct **/
 public function __construct()
 {
     parent::__construct();
     $this->advancedUser = new AdvancedUser();
     $this->contracts = new ArrayCollection();
     $contract = new Contract();
     $contract->setSubscriber($this);
     $this->addContract($contract);
     $this->receipts = new ArrayCollection();
     $this->invoices = new ArrayCollection();
     $this->setState(new RunningState());
 }
Ejemplo n.º 7
0
 /** Constructor **/
 public function __construct()
 {
     parent::__construct();
     $this->user = new User();
     $this->invoices = new ArrayCollection();
     $this->receipts = new ArrayCollection();
     $this->emails = new ArrayCollection();
     $this->phones = new ArrayCollection();
     $this->addresses = new ArrayCollection();
     $phone = new Phone();
     $phone->setOwner($this);
     $this->addPhone($phone);
     $address = new Address();
     $address->setOwner($this);
     $this->addAddress($address);
 }
Ejemplo n.º 8
0
 /** Constructor **/
 public function __construct()
 {
     parent::__construct();
     // kc, 2015-08-01
     // $this->lastPaidAt = new \DateTime('now');
     $this->startAt = new \DateTime('now');
     $this->lastPaidAt = null;
     // $this->endAt = new \DateTime('now');
     $this->endAt = clone $this->startAt;
     $this->endAt->modify('23:59:59');
     $this->endAt->modify('+14 days');
     $playplace = new Playplace();
     $playplace->setContract($this);
     $this->playplace = $playplace;
     $this->state = new ImcompleteState();
     $this->stateName = $this->state;
     $this->isInvoiceIssued = false;
 }
Ejemplo n.º 9
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->contracts = new \Doctrine\Common\Collections\ArrayCollection();
     $this->availablePaymentMethods = array();
 }
Ejemplo n.º 10
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 11
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->programItems = new \Doctrine\Common\Collections\ArrayCollection();
 }
Ejemplo n.º 12
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->plans = new \Doctrine\Common\Collections\ArrayCollection();
     $this->channelItems = new \Doctrine\Common\Collections\ArrayCollection();
 }
Ejemplo n.º 13
0
 public function __construct($planId, $courseId)
 {
     parent::__construct();
     $this->metaData = \json_encode(array('planId' => $planId, 'courseId' => $courseId));
 }