PHP Chain-of-responsibility-pattern Resources