getChildClasses() public method

Return the class names or interfaces that children of this document must be an instance of.
public getChildClasses ( ) : string[]
return string[]
Exemplo n.º 1
0
 private function unrestrictChildClass(string $class, ClassMetadata $metadata)
 {
     if (!$class) {
         return;
     }
     if (!($childClasses = $metadata->getChildClasses())) {
         return;
     }
     $childClasses[] = $class;
     $metadata->setChildClasses($childClasses);
 }
 /**
  * @depends testLoadChildClassesMapping
  * @param ClassMetadata $class
  */
 public function testChildClassesMapping($class)
 {
     $this->assertEquals(array('stdClass'), $class->getChildClasses());
 }