コード例 #1
0
ファイル: Playplace.php プロジェクト: roronya/Bgm555
 /** Construct**/
 public function __construct()
 {
     parent::__construct();
     $this->user = new User();
     $this->loginId = $this->generateTimebaseId();
     $this->lastVolume = 50;
 }
コード例 #2
0
ファイル: User.php プロジェクト: roronya/Bgm555
 /** Constructor **/
 public function __construct()
 {
     parent::__construct();
     $this->memo = '';
     $this->roles = new ArrayCollection();
     $this->loginId = $this->generateTimebaseId();
 }
コード例 #3
0
ファイル: Program.php プロジェクト: roronya/Bgm555
 /**
  * Constructor
  */
 public function __construct($isRandomize = false)
 {
     parent::__construct();
     $this->programItems = new \Doctrine\Common\Collections\ArrayCollection();
     $this->isRandomize = $isRandomize;
     $this->nowPlayingIndex = 0;
 }
コード例 #4
0
ファイル: Plan.php プロジェクト: roronya/Bgm555
 /** 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
ファイル: Subscriber.php プロジェクト: roronya/Bgm555
 /** 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
ファイル: AdvancedUser.php プロジェクト: roronya/Bgm555
 /** 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
ファイル: Contract.php プロジェクト: roronya/Bgm555
 /** 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
ファイル: Course.php プロジェクト: roronya/Bgm555
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->contracts = new \Doctrine\Common\Collections\ArrayCollection();
     $this->availablePaymentMethods = array();
 }
コード例 #10
0
ファイル: Product.php プロジェクト: roronya/Bgm555
 public function __construct()
 {
     parent::__construct();
 }
コード例 #11
0
ファイル: Song.php プロジェクト: roronya/Bgm555
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->programItems = new \Doctrine\Common\Collections\ArrayCollection();
 }
コード例 #12
0
ファイル: Channel.php プロジェクト: roronya/Bgm555
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->plans = new \Doctrine\Common\Collections\ArrayCollection();
     $this->channelItems = new \Doctrine\Common\Collections\ArrayCollection();
 }
コード例 #13
0
ファイル: PreSubscriber.php プロジェクト: roronya/Bgm555
 public function __construct($planId, $courseId)
 {
     parent::__construct();
     $this->metaData = \json_encode(array('planId' => $planId, 'courseId' => $courseId));
 }