| 1 | <?php |
||
| 8 | class QueryException extends \Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The url which the query is targeting. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $query; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The bindings for the query. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $bindings; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new query exception instance. |
||
| 26 | * |
||
| 27 | * @param string $query |
||
| 28 | * @param array $bindings |
||
| 29 | * @param \Exception $previous |
||
| 30 | */ |
||
| 31 | public function __construct($query, array $bindings, $previous) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Format the error message. |
||
| 44 | * |
||
| 45 | * @param string $query |
||
| 46 | * @param array $bindings |
||
| 47 | * @param \Exception $previous |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | protected function formatMessage($query, $bindings, $previous) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the url which the query is targeting. |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getQuery() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the bindings for the query. |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | public function getBindings() |
||
| 75 | } |
||
| 76 |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.