Esempio n. 1
0
 /**
  * @return bool
  */
 public function isAMap()
 {
     return FieldRule::A_MAP === $this->rule->getValue();
 }
Esempio n. 2
0
 public function testGetRule()
 {
     $this->assertInstanceOf('Gdbots\\Pbjc\\Enum\\FieldRule', $this->field->getRule());
     $this->assertEquals(FieldRule::A_SINGLE_VALUE(), $this->field->getRule());
 }