Example #1
0
 /**
  * @param $title
  */
 private function setTitle($title)
 {
     Assertion::notBlank($title, 'Title is required');
     Assertion::string($title, 'Title should be string type');
     $this->title = $title;
 }
Example #2
0
 /**
  * @param $name
  */
 private function setName($name)
 {
     Assertion::notBlank($name, 'Merchant name is required');
     Assertion::string($name, 'Merchant name must be string type');
     $this->name = $name;
 }