1: <?php
2:
3: /**
4: * Deep
5: *
6: * @package rsanchez\Deep
7: * @author Rob Sanchez <info@robsanchez.com>
8: */
9:
10: namespace rsanchez\Deep\Model;
11:
12: /**
13: * Interface for file-based models like File and Asset
14: */
15: interface FileInterface
16: {
17: /**
18: * Get the public url to this file
19: * @return string
20: */
21: public function getUrlAttribute();
22:
23: /**
24: * Get the server path to this file
25: * @return string
26: */
27: public function getServerPathAttribute();
28:
29: /**
30: * Get the public url to this file
31: * @return string
32: */
33: public function __toString();
34: }
35: