public function fileOnly($flag = true)
    {
        $this->file_only = $flag;
        if ($this->file_only) $this->directory_only = false;
        return $this;
    }
public function fileOnly($flag = true)
    {
        $this->file_only = $flag;
        if ($this->file_only) $this->directory_only = false;
        return $this;
    }
public function fileOnly ( $ flag = true ) { $ this -> file_only = $ flag ; if ( $ this -> file_only ) $ this -> directory_only = false ; return $ this ; }
set file only flag is true

@return  Samurai\Samurai\Component\FileSystem\Finder\Finder
set file only flag is true