コード例 #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
ファイル: Callback.php プロジェクト: clippings/carpo
 /**
  * @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);
 }