Josegonzalez\Upload\File\Path\Filename\DefaultTrait::filename PHP Method

filename() public method

If a nameCallback is specified in settings, then that callable will be invoked with the current upload data.
public filename ( ) : string
return string
    public function filename()
    {
        $processor = Hash::get($this->settings, 'nameCallback', null);
        if (is_callable($processor)) {
            return $processor($this->data, $this->settings);
        }
        return $this->data['name'];
    }
DefaultTrait