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