Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SortOrderBuilder.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Framework\Api;
8 
16 {
23  public function setField($field)
24  {
25  $this->_set(SortOrder::FIELD, $field);
26  return $this;
27  }
28 
35  public function setDirection($direction)
36  {
37  $this->_set(SortOrder::DIRECTION, $direction);
38  return $this;
39  }
40 
44  public function setAscendingDirection()
45  {
47  return $this;
48  }
49 
53  public function setDescendingDirection()
54  {
56  return $this;
57  }
58 }