Пример #1
0
 /** Construct**/
 public function __construct()
 {
     parent::__construct();
     $this->user = new User();
     $this->loginId = $this->generateTimebaseId();
     $this->lastVolume = 50;
 }
Пример #2
0
 /** Constructor **/
 public function __construct()
 {
     parent::__construct();
     $this->memo = '';
     $this->roles = new ArrayCollection();
     $this->loginId = $this->generateTimebaseId();
 }
Пример #3
0
 /**
  * Constructor
  */
 public function __construct($isRandomize = false)
 {
     parent::__construct();
     $this->programItems = new \Doctrine\Common\Collections\ArrayCollection();
     $this->isRandomize = $isRandomize;
     $this->nowPlayingIndex = 0;
 }
Пример #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'));
 }
Пример #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);
 }
Пример #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());
 }
Пример #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);
 }
Пример #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;
 }
Пример #9
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->contracts = new \Doctrine\Common\Collections\ArrayCollection();
     $this->availablePaymentMethods = array();
 }
Пример #10
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #11
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->programItems = new \Doctrine\Common\Collections\ArrayCollection();
 }
Пример #12
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->plans = new \Doctrine\Common\Collections\ArrayCollection();
     $this->channelItems = new \Doctrine\Common\Collections\ArrayCollection();
 }
Пример #13
0
 public function __construct($planId, $courseId)
 {
     parent::__construct();
     $this->metaData = \json_encode(array('planId' => $planId, 'courseId' => $courseId));
 }