protected static function getChildrenDeclaration()

in src/html/tags/f/Figure.hack [19:30]


  protected static function getChildrenDeclaration(): XHPChild\Constraint {
    return XHPChild\any_of(
      XHPChild\sequence(
        XHPChild\of_type<figcaption>(),
        XHPChild\at_least_one_of(XHPChild\of_type<Category\Flow>()),
      ),
      XHPChild\sequence(
        XHPChild\at_least_one_of(XHPChild\of_type<Category\Flow>()),
        XHPChild\optional(XHPChild\of_type<figcaption>()),
      ),
    );
  }