Remove trailing blank lines
Rename exception Exception to PodException
Create file FilterInterface.php
Add interface FilterInterface
Change class Filter

Change class Filter to implement interface FilterInterface.
Change method filter

Set access of method filter to public.
Create file ProcessorInterface.php
Add interface ProcessorInterface
Change class Processor

Change class Processor to implement interface ProcessorInterface.