mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-10-26 05:45:42 +00:00
InputFile now inherits from InputItem
This commit is contained in:
@@ -1,26 +1,14 @@
|
||||
<?php
|
||||
namespace Pecee\Http\Input;
|
||||
|
||||
class InputFile {
|
||||
class InputFile extends InputItem {
|
||||
|
||||
protected $index;
|
||||
protected $name;
|
||||
protected $size;
|
||||
protected $type;
|
||||
protected $error;
|
||||
protected $tmpName;
|
||||
|
||||
public function getIndex() {
|
||||
return $this->index;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName() {
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
@@ -61,14 +49,6 @@ class InputFile {
|
||||
return file_get_contents($this->tmpName);
|
||||
}
|
||||
|
||||
public function setIndex($index) {
|
||||
$this->index = $index;
|
||||
}
|
||||
|
||||
public function setName($name) {
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setTmpName($name) {
|
||||
$this->tmpName = $name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user