Skip to content

Commit

Permalink
#25911 Fix notice on incorrect price param
Browse files Browse the repository at this point in the history
Fix static tests
  • Loading branch information
ihor-sviziev committed Dec 6, 2019
1 parent 7068268 commit 414105e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions app/code/Magento/Catalog/Model/Layer/Filter/DataProvider/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Magento\Framework\Registry;
use Magento\Store\Model\ScopeInterface;

/**
* Data provider for price filter in layered navigation
*/
class Price
{
/**
Expand Down Expand Up @@ -103,6 +106,8 @@ public function __construct(
}

/**
* Getter for interval
*
* @return array
*/
public function getInterval()
Expand All @@ -111,6 +116,8 @@ public function getInterval()
}

/**
* Setter for interval
*
* @param array $interval
* @return void
*/
Expand All @@ -120,6 +127,10 @@ public function setInterval($interval)
}

/**
* Retrieves price layered navigation modes
*
* @see RANGE_CALCULATION_AUTO
*
* @return mixed
*/
public function getRangeCalculationValue()
Expand All @@ -131,6 +142,8 @@ public function getRangeCalculationValue()
}

/**
* Retrieves range step
*
* @return mixed
*/
public function getRangeStepValue()
Expand All @@ -142,6 +155,8 @@ public function getRangeStepValue()
}

/**
* Retrieves one price interval
*
* @return mixed
*/
public function getOnePriceIntervalValue()
Expand Down Expand Up @@ -179,6 +194,8 @@ public function getRangeMaxIntervalsValue()
}

/**
* Retrieves Catalog Layer object
*
* @return Layer
*/
public function getLayer()
Expand Down Expand Up @@ -276,6 +293,8 @@ public function getMaxPrice()
}

/**
* Retrieve list of prior filters
*
* @param string $filterParams
* @return array
*/
Expand Down Expand Up @@ -339,6 +358,8 @@ public function getResetValue()
}

/**
* Getter for prior intervals
*
* @return array
*/
public function getPriorIntervals()
Expand All @@ -347,6 +368,8 @@ public function getPriorIntervals()
}

/**
* Setter for prior intervals
*
* @param array $priorInterval
* @return void
*/
Expand All @@ -356,6 +379,8 @@ public function setPriorIntervals($priorInterval)
}

/**
* Get Resource model for price filter
*
* @return \Magento\Catalog\Model\ResourceModel\Layer\Filter\Price
*/
public function getResource()
Expand All @@ -364,6 +389,8 @@ public function getResource()
}

/**
* Retrieves additional request data
*
* @return string
*/
public function getAdditionalRequestData()
Expand Down

0 comments on commit 414105e

Please sign in to comment.