1: <?php
2:
3: namespace Charcoal\Cms;
4:
5: // From 'charcoal-translator'
6: use Charcoal\Translator\Translation;
7:
8: /**
9: *
10: */
11: interface DocumentInterface
12: {
13: /**
14: * @param mixed $name The document name (localized).
15: * @return self
16: */
17: public function setName($name);
18:
19: /**
20: * @return Translation|string|null
21: */
22: public function name();
23:
24: /**
25: * @param string $file The file relative path / url (localized).
26: * @return self
27: */
28: public function setFile($file);
29:
30: /**
31: * @return string
32: */
33: public function file();
34:
35: /**
36: * @return string
37: */
38: public function path();
39:
40: /**
41: * @return string
42: */
43: public function url();
44:
45: /**
46: * @return string
47: */
48: public function mimetype();
49:
50: /**
51: * Get the filename (basename; without any path segment).
52: *
53: * @return string
54: */
55: public function filename();
56:
57: /**
58: * Get the document's file size, in bytes.
59: *
60: * @return integer
61: */
62: public function filesize();
63: }
64: