instance() 공개 정적인 메소드

public static instance ( $filename = null ) : StructArrayReservedMethod
리턴 StructArrayReservedMethod
 /**
  * @return StructArrayReservedMethod
  */
 public static function instance()
 {
     return StructArrayReservedMethod::instance(__DIR__ . '/../resources/struct_array_reserved_keywords.yml');
 }
예제 #2
0
 /**
  * @param $filename
  * @return StructReservedMethod|StructArrayReservedMethod
  */
 public function getReservedMethodsInstance($filename = null)
 {
     $instance = StructReservedMethod::instance($filename);
     if ($this->isArray()) {
         $instance = StructArrayReservedMethod::instance($filename);
     }
     return $instance;
 }