specifyPrice() public method

public specifyPrice ( integer $price, string $channel )
$price integer
$channel string
コード例 #1
0
 /**
  * @When /^I set its price to ("(?:€|£|\$)[^"]+")$/
  */
 public function iSetItsPriceTo($price)
 {
     $this->createPage->specifyPrice($price);
 }
コード例 #2
0
 /**
  * @When /^I set its(?:| default) price to "(?:€|£|\$)([^"]+)" for "([^"]+)" channel$/
  * @When I do not set its price
  */
 public function iSetItsPriceTo($price = null, $channel = null)
 {
     $this->createPage->specifyPrice($price, null === $channel ? $this->sharedStorage->get('channel') : $channel);
 }