예제 #1
0
파일: Matches.php 프로젝트: clippings/carpo
 /**
  * @param string $name
  * @param string $matches
  * @param string $message
  */
 public function __construct($name, $matches, $message = ':name must match :matches')
 {
     $this->matches = (string) $matches;
     parent::__construct($name, $message);
 }
예제 #2
0
 /**
  * @param string  $name
  * @param Closure $callback
  * @param string  $message
  */
 public function __construct($name, Closure $callback, $message = ':name is invalid')
 {
     $this->callback = $callback;
     parent::__construct($name, $message);
 }
예제 #3
0
파일: Present.php 프로젝트: clippings/carpo
 /**
  * @param string $name
  * @param string $message
  */
 public function __construct($name, $message = ':name must be present')
 {
     parent::__construct($name, $message);
 }