PHP Classes
elePHPant
Icontem

File: src/Exception/MustBeArrayOrEasyStatement.php

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  EasyDB  >  src/Exception/MustBeArrayOrEasyStatement.php  >  Download  
File: src/Exception/MustBeArrayOrEasyStatement.php
Role: Class source
Content type: text/plain
Description: Class source
Class: EasyDB
Simple Database Abstraction Layer around PDO
Author: By
Last change:
Date: 7 months ago
Size: 875 bytes
 

 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\EasyDB\Exception;

use
ParagonIE\Corner\CornerInterface;
use
ParagonIE\Corner\CornerTrait;

/**
 * Class MustBeArrayOrEasyStatement
 * @package ParagonIE\EasyDB\Exception
 */
class MustBeArrayOrEasyStatement extends \TypeError implements CornerInterface
{
    use
CornerTrait;

    public function
__construct(string $message = "", int $code = 0, \Throwable $previous = null)
    {
       
parent::__construct($message, $code, $previous);
       
$this->supportLink = 'https://github.com/paragonie/easydb';
       
$this->helpfulMessage = "This method expects either a 1-dimensional array with string keys,
or an EasyStatement object.

If you're not using the EasyStatement class in your code, make sure you're passing an array.

Each array element should be a key => value pair, where the key is the column name."
;
    }
}