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

MissingConsoleInputException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setQuestion() 0 4 1
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