WowPress-Tailwind/theme/vendor/illuminate/database/MultipleRecordsFoundExcepti...

41 lines
745 B
PHP
Raw Permalink Normal View History

2024-04-15 16:00:49 +02:00
<?php
namespace Illuminate\Database;
use RuntimeException;
class MultipleRecordsFoundException extends RuntimeException
{
/**
* The number of records found.
*
* @var int
*/
public $count;
/**
* Create a new exception instance.
*
* @param int $count
* @param int $code
* @param \Throwable|null $previous
* @return void
*/
public function __construct($count, $code = 0, $previous = null)
{
$this->count = $count;
parent::__construct("$count records were found.", $code, $previous);
}
/**
* Get the number of records found.
*
* @return int
*/
public function getCount()
{
return $this->count;
}
}