コード例 #1
0
ファイル: ValueTest.php プロジェクト: Opifer/Cms
 public function testSort()
 {
     $valueEntity = new Value();
     $sort = 'Some Sort';
     $expected = $sort;
     $valueEntity->setSort($sort);
     $actual = $valueEntity->getSort();
     $this->assertSame($expected, $actual);
 }
コード例 #2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->nested = new ArrayCollection();
     $this->allowedTemplates = new ArrayCollection();
 }
コード例 #3
0
ファイル: DateTimeValue.php プロジェクト: Opifer/Cms
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $now = new \DateTime();
     $this->setValue($now);
 }
コード例 #4
0
ファイル: MediaValue.php プロジェクト: NickyBeunder/EavBundle
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->medias = new ArrayCollection();
 }