Debian Codegraph @

lib/3rdParty/composer/illuminate/collections/MultipleItemsFoundException.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Support;
4
5 use RuntimeException;
6
7 class MultipleItemsFoundException extends RuntimeException
8 {
9 /**
10 * The number of items found.
11 *
12 * @var int
13 */
14 public $count;
15
16 /**
17 * Create a new exception instance.
18 *
19 * @param int $count
20 * @param int $code
21 * @param \Throwable|null $previous
22 */
23 public function __construct($count, $code = 0, $previous = null)
24 {
25 $this->count = $count;
26
27 parent::__construct("$count items were found.", $code, $previous);
28 }
29
30 /**
31 * Get the number of items found.
32 *
33 * @return int
34 */
35 public function getCount()
36 {
37 return $this->count;
38 }
39 }