for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by gerk on 30.10.17 06:25
*/
namespace PeekAndPoke\Component\Slumber\Data\Error;
*
* @author Karsten J. Gerber <[email protected]>
class DuplicateError extends StorageError
{
/** @var string */
private $table;
private $index;
private $data;
* @param string $message
* @param string $table
* @param string $index
* @param string $data
* @param \Exception|null $previous
final public function __construct($message = '', $table, $index, $data, \Exception $previous = null)
parent::__construct($message, self::DUPLICATE_KEY, $previous);
$this->table = $table;
$this->index = $index;
$this->data = $data;
}
* @return string
public function getTable()
return $this->table;
public function getIndex()
return $this->index;
public function getData()
return $this->data;