1 | <?php |
||
30 | class ArticleMediaLoader extends PaginatedLoader implements LoaderInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var MetaFactory |
||
34 | */ |
||
35 | protected $metaFactory; |
||
36 | |||
37 | /** |
||
38 | * @var Context |
||
39 | */ |
||
40 | protected $context; |
||
41 | |||
42 | /** |
||
43 | * @var ArticleMediaProviderInterface |
||
44 | */ |
||
45 | protected $articleMediaProvider; |
||
46 | |||
47 | /** |
||
48 | * ArticleMediaLoader constructor. |
||
49 | * |
||
50 | * @param ArticleMediaProviderInterface $articleMediaProvider |
||
51 | * @param MetaFactory $metaFactory |
||
52 | * @param Context $context |
||
53 | */ |
||
54 | 105 | public function __construct( |
|
63 | |||
64 | /** |
||
65 | * Load meta object by provided type and parameters. |
||
66 | * |
||
67 | * @MetaLoaderDoc( |
||
68 | * description="Article Media Loader loads article media from Content Repository", |
||
69 | * parameters={ |
||
70 | * article="COLLECTION| article Meta object" |
||
71 | * } |
||
72 | * ) |
||
73 | * |
||
74 | * @param string $type object type |
||
75 | * @param array $parameters parameters needed to load required object type |
||
76 | * @param int $responseType response type: collection of meta (LoaderInterface::COLLECTION) |
||
77 | * |
||
78 | * @return Meta[]|bool false if meta cannot be loaded, an array with Meta instances otherwise |
||
79 | */ |
||
80 | 9 | public function load($type, $parameters = [], $responseType = LoaderInterface::COLLECTION) |
|
108 | |||
109 | /** |
||
110 | * Checks if Loader supports provided type. |
||
111 | * |
||
112 | * @param string $type |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | 14 | public function isSupported(string $type) : bool |
|
120 | } |
||
121 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.