Exemple #1
0
 public static function createFromData(\stdClass $data)
 {
     /** @var static $country */
     $country = parent::createBaseFromData($data);
     if (isset($data->content)) {
         foreach ($data->content as $contentData) {
             $country->content[] = CountryContent::createFromData($contentData);
         }
     }
     return $country;
 }
 /**
  * @covers ::getDescription
  */
 public function testGetDescription()
 {
     $this->assertSame('Het is vandaag woensdag.', $this->sut->getDescription());
 }