apply() public method

public apply ( callable $function )
$function callable
 /**
  * @param string $code
  * @return string
  */
 private function applyFilters(string $code) : string
 {
     $this->filters->apply(function ($filter) use(&$code) {
         $code = $filter($code);
     });
     return $code;
 }