/**
  * @param array   $mappedClass
  * @param Mapping $mapping
  */
 protected static function setCuries(array &$mappedClass, Mapping $mapping)
 {
     if (false === empty($mappedClass[static::CURIES_KEY])) {
         $mapping->setCuries($mappedClass[static::CURIES_KEY]);
     }
 }
Exemplo n.º 2
0
 public function testCuriesWillThrowException()
 {
     $this->expectException(MappingException::class);
     $this->mapping->setCuries([]);
 }