コード例 #1
0
ファイル: FieldDescriptor.php プロジェクト: gdbots/pbj
 /**
  * @return bool
  */
 public function isAMap()
 {
     return FieldRule::A_MAP === $this->rule->getValue();
 }
コード例 #2
0
ファイル: FieldDescriptorTest.php プロジェクト: gdbots/pbj
 public function testGetRule()
 {
     $this->assertInstanceOf('Gdbots\\Pbjc\\Enum\\FieldRule', $this->field->getRule());
     $this->assertEquals(FieldRule::A_SINGLE_VALUE(), $this->field->getRule());
 }