public function filterByExtension()
	{
		// The call back that filters files through the finder
		$filter = function (\SplFileInfo $file) {
			
			return in_array($file->getExtension(), $this->extensions);
		};

		$this->filter($filter);
	}
public function filterByExtension()
	{
		// The call back that filters files through the finder
		$filter = function (\SplFileInfo $file) {
			
			return in_array($file->getExtension(), $this->extensions);
		};

		$this->filter($filter);
	}
public function filterByExtension ( ) { // The call back that filters files through the finder $ filter = function ( \ SplFileInfo $ file ) { return in_array ( $ file -> getExtension ( ) , $ this -> extensions ) ; } ; $ this -> filter ( $ filter ) ; }
Filters file results by their extension

@return void
@author Dan Cox
Filters file results by their extension