public function testGetSetCountyName()
 {
     $expected = uniqid('CountyName');
     $this->assertEmpty($this->instance->getCountyName());
     $this->assertInstanceOf(County::class, $this->instance->setCountyName($expected));
     $this->assertEquals($expected, $this->instance->getCountyName());
 }
Exemplo n.º 2
0
 /**
  * @VirtualProperty
  * @SerializedName("county")
  *
  * @return string
  */
 public function getCountyName()
 {
     if ($this->county instanceof County) {
         return $this->county->getCountyName();
     }
     return '';
 }
 /**
  * @param County $county
  * @return array<County>
  */
 public function findCountyByNameAndEntityCode(County $county)
 {
     return $this->findBy(array('entityCode' => $county->getEntityCode(), 'countyName' => $county->getCountyName()));
 }