src/PropifierTrait.php
private static function filterProperties(array $methods): array {
    return array_filter($methods, function(ReflectionMethod $method) {
      return
        (strlen($method->name) > 3) && (
          (strpos($method->name, 'get') === 0) ||
          (strpos($method->name, 'set') === 0) ||
          (strpos($method->name, 'itr') === 0)
        )
      ;
    });
  }
private static function filterProperties(array $methods): array {
    return array_filter($methods, function(ReflectionMethod $method) {
      return
        (strlen($method->name) > 3) && (
          (strpos($method->name, 'get') === 0) ||
          (strpos($method->name, 'set') === 0) ||
          (strpos($method->name, 'itr') === 0)
        )
      ;
    });
  }
private static function filterProperties ( array $ methods ) : array { return array_filter ( $ methods , function ( ReflectionMethod $ method ) { return ( strlen ( $ method -> name ) > 3 ) && ( ( strpos ( $ method -> name , 'get' ) === 0 ) || ( strpos ( $ method -> name , 'set' ) === 0 ) || ( strpos ( $ method -> name , 'itr' ) === 0 ) ) ; } ) ; }
Filters out all methods that don't match the property signatures

@param  ReflectionMethod[]  $methods  An array of methods to filter

@return  ReflectionMethod[]  The methods after filtering out non-properties
Filters out all methods that don t match the property signatures