1 | <?php |
||
27 | class Image extends \SplFileObject implements ImageInterface |
||
28 | { |
||
29 | /** |
||
30 | * Image context. Must be one of the following values: |
||
31 | * thumbnail, icon, background, logo, footer, strip |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $context; |
||
35 | |||
36 | /** |
||
37 | * All of the pass’s images are loaded using standard UIImage image-loading methods. |
||
38 | * This means, for example, the file name of high resolution versions of the image ends with @2x.png/@3x.png. |
||
39 | * @var integer |
||
40 | */ |
||
41 | protected $density; |
||
42 | |||
43 | public function __construct($filename, $context) |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function setContext($context) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getContext() |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function setDensity($density) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getDensity() |
||
86 | } |
||
87 |