| Total Complexity | 25 |
| Total Lines | 137 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | class DocumentMetadata extends Metadata |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Title (if not detected by Apache Tika, name without extension is used) |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | public $title = null; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Description. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $description = null; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Keywords |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | public $keywords = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Two-letter language code (ISO-639-1) |
||
| 35 | * |
||
| 36 | * @link https://en.wikipedia.org/wiki/ISO_639-1 |
||
| 37 | * |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | public $language = null; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Content encoding |
||
| 44 | * |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | public $encoding = null; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Author |
||
| 51 | * |
||
| 52 | * @var string |
||
| 53 | */ |
||
| 54 | public $author = null; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Software used to generate document |
||
| 58 | * |
||
| 59 | * @var string |
||
| 60 | */ |
||
| 61 | public $generator = null; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Number of pages |
||
| 65 | * |
||
| 66 | * @var int |
||
| 67 | */ |
||
| 68 | public $pages = 0; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Number of words. |
||
| 72 | * |
||
| 73 | * @var int |
||
| 74 | */ |
||
| 75 | public $words = 0; |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Sets an attribute |
||
| 79 | * |
||
| 80 | * @param mixed $value |
||
| 81 | * @throws \Exception |
||
| 82 | */ |
||
| 83 | protected function setSpecificAttribute(string $key, $value): MetadataInterface |
||
| 149 |