コード例 #1
0
 public function __construct($namePath = array(), Field $itemField = null)
 {
     parent::__construct($namePath);
     $this->itemField = $itemField;
 }
コード例 #2
0
ファイル: RawTest.php プロジェクト: silex-spear/persistence
 /**
  * @dataProvider providerTestPrintableNamePath
  */
 public function testPrintableNamePath($fieldPath, $expected)
 {
     $field = new Raw($fieldPath);
     $value = $field->getPrintableNamePath();
     $this->assertSame($expected, $value);
 }
コード例 #3
0
ファイル: Boolean.php プロジェクト: silex-spear/persistence
 public function __construct($namePath = array())
 {
     parent::__construct($namePath);
     $this->allowStringValues = false;
     $this->allowIntegerValues = false;
 }
コード例 #4
0
ファイル: DateTime.php プロジェクト: silex-spear/persistence
 public function __construct($namePath, $dateFormat)
 {
     parent::__construct($namePath);
     $this->dateFormat = $dateFormat;
 }