| 1 | <?php |
||
| 14 | abstract class ReadableDocument implements DocumentInterface |
||
| 15 | { |
||
| 16 | /** @var string */ |
||
| 17 | protected $filePath; |
||
| 18 | /** @var string */ |
||
| 19 | protected $extension; |
||
| 20 | /** @var Filesystem */ |
||
| 21 | protected $fs; |
||
|
|
|||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $filePath |
||
| 25 | */ |
||
| 26 | 148 | public function __construct(File $filePath) |
|
| 34 | |||
| 35 | 79 | final public function getRelativeFilePath() |
|
| 39 | |||
| 40 | 14 | final public function getExtension() |
|
| 44 | |||
| 45 | 51 | final public function getBaseName() |
|
| 49 | |||
| 50 | 23 | final public function getAbsoluteFilePath() |
|
| 54 | |||
| 55 | 31 | final public function getFileName() |
|
| 59 | |||
| 60 | abstract public function refreshFileContent(); |
||
| 61 | } |
||
| 62 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.