Completed
Push — master ( 29c73f...e16d98 )
by Mark
41s queued 11s
created

MissingConsoleInputException::setQuestion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * CakePHP :  Rapid Development Framework (https://cakephp.org)
4
 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
5
 *
6
 * Licensed under The MIT License
7
 * For full copyright and license information, please see the LICENSE.txt
8
 * Redistributions of files must retain the above copyright notice.
9
 *
10
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
11
 * @link          https://cakephp.org CakePHP Project
12
 * @license       https://opensource.org/licenses/mit-license.php MIT License
13
 */
14
namespace Cake\TestSuite\Stub;
15
16
use RuntimeException;
17
18
/**
19
 * Exception class used to indicate missing console input.
20
 */
21
class MissingConsoleInputException extends RuntimeException
22
{
23
    /**
24
     * Update the exception message with the question text
25
     *
26
     * @param string $question The question text.
27
     * @return void
28
     */
29
    public function setQuestion($question)
30
    {
31
        $this->message .= "\nThe question asked was: " . $question;
32
    }
33
}
34