public function supports() { $extension = pathinfo($this->entity, PATHINFO_EXTENSION); return in_array($extension, static::$supported); }