Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MethodAnnotationFixture.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
15 {
20  public function getProductListDefaultSortBy1()
21  {
22  }
23 
28  public function getProductListDefaultSortBy10($store = null)
29  {
30  return $store;
31  }
32 
40  {
41  }
42 
46  public function getProductListDefaultBy()
47  {
48  return;
49  }
50 
57  {
58  return;
59  }
60 
65  public function content(\Magento\Catalog\Model\Product\Visibility $productVisibility)
66  {
67  $this->productVisibility = $productVisibility;
68  }
69 
78  public function construct(AbstractDb $collection)
79  {
81  $collection->setVisibility($this->productVisibility->getVisibleInCatalogIds());
82  }
83 
93  public function move($parentId)
94  {
99  try {
100  $this->categoryRepository->get($parentId, $this->getStoreId());
101  } catch (NoSuchEntityException $e) {
102  throw new \Magento\Framework\Exception\LocalizedException(
103  __('Sorry, but we can\'t find the new parent category you selected.'),
104  $e
105  );
106  }
107  return true;
108  }
109 
121  {
122  return $store;
123  }
124 
131  {
132  }
133 
146  {
147  return $store;
148  }
149 
158  {
159  return $store;
160  }
161 
171  public function getProductListDefaultSortBy12($store, $foo)
172  {
173  return $store === $foo;
174  }
175 
184  public function getProductListDefaultSort2($store, $foo)
185  {
186  return $store === $foo;
187  }
188 
198  public function getProductListDefault($store, $foo)
199  {
200  return $store === $foo;
201  }
202 
210  protected function getCustomOptions(ProductOptionInterface $productOption)
211  {
212  if ($productOption
213  && $productOption->getExtensionAttributes()
214  && $productOption->getExtensionAttributes()->getCustomOptions()
215  ) {
216  return $productOption->getExtensionAttributes()
217  ->getCustomOptions();
218  }
219  return [];
220  }
221 
236  public function getProductListDefaultSortBy2($example, $example2)
237  {
238  return $example === $example2;
239  }
240 
250  public function getProductListDefaultSortBy($start, $length)
251  {
252  return $start === $length;
253  }
254 
264  public function getProductListDefaultSortBy222($name, $folder)
265  {
266  return $name === $folder;
267  }
268 
269  public function setExtensionAs(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
270  {
271  return $this->_setExtensionAttributes($extensionAttributes);
272  }
273 
280  public function setEn(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
281  {
282  return $this->_setExtensionAttributes($extensionAttributes);
283  }
284 
289  public function setExtenw(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
290  {
291  return $this->_setExtensionAttributes($extensionAttributes);
292  }
293 
300  public function setExff(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
301  {
302  return $this->_setExtensionAttributes($extensionAttributes);
303  }
304 
313  public function getProductSortBy($start, $length)
314  {
315  return $start === $length;
316  }
317 }
setExff(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
__()
Definition: __.php:13
$start
Definition: listing.phtml:18
setExtenw(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
setEn(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
setExtensionAs(\Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22
content(\Magento\Catalog\Model\Product\Visibility $productVisibility)
if(!isset($_GET['name'])) $name
Definition: log.php:14