file_path = $file_path; } function getList( $max = null){ $dir = new DirectoryIterator($this->file_path); } /** * @param string file_path */ public function setFile_path($file_path) { $this->file_path = $file_path; return $this; } /** * @return string */ public function getFile_path() { if( null == $this->file_path){ throw new \Exception("Missing property 'file_path' in format instance"); } return $this->file_path; } }