| 1 |
<?php |
| 2 |
/* |
| 3 |
* This file is part of the ManageWP Worker plugin. |
| 4 |
* |
| 5 |
* (c) ManageWP LLC <contact@managewp.com> |
| 6 |
* |
| 7 |
* For the full copyright and license information, please view the LICENSE |
| 8 |
* file that was distributed with this source code. |
| 9 |
*/ |
| 10 |
|
| 11 |
class MWP_FileManager_Model_Files |
| 12 |
{ |
| 13 |
|
| 14 |
/** |
| 15 |
* @var string |
| 16 |
*/ |
| 17 |
private $pathname; |
| 18 |
|
| 19 |
/** |
| 20 |
* @var MWP_Stream_Interface |
| 21 |
*/ |
| 22 |
private $stream; |
| 23 |
|
| 24 |
/** |
| 25 |
* @var string |
| 26 |
*/ |
| 27 |
private $encoding = 'binary'; |
| 28 |
|
| 29 |
/** |
| 30 |
* @return string |
| 31 |
*/ |
| 32 |
public function getPathname() |
| 33 |
{ |
| 34 |
return $this->pathname; |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* @param string $pathname |
| 39 |
*/ |
| 40 |
public function setPathname($pathname) |
| 41 |
{ |
| 42 |
$this->pathname = $pathname; |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* @return MWP_Stream_Interface |
| 47 |
*/ |
| 48 |
public function getStream() |
| 49 |
{ |
| 50 |
return $this->stream; |
| 51 |
} |
| 52 |
|
| 53 |
/** |
| 54 |
* @param MWP_Stream_Interface $stream |
| 55 |
*/ |
| 56 |
public function setStream($stream) |
| 57 |
{ |
| 58 |
$this->stream = $stream; |
| 59 |
} |
| 60 |
|
| 61 |
/** |
| 62 |
* @return string |
| 63 |
*/ |
| 64 |
public function getEncoding() |
| 65 |
{ |
| 66 |
return $this->encoding; |
| 67 |
} |
| 68 |
|
| 69 |
/** |
| 70 |
* @param string $encoding |
| 71 |
*/ |
| 72 |
public function setEncoding($encoding) |
| 73 |
{ |
| 74 |
$this->encoding = $encoding; |
| 75 |
} |
| 76 |
} |
| 77 |
|