Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / test / ClassWithSecrets.php
1 <?php
2
3 /*
4  * This file is part of Psy Shell.
5  *
6  * (c) 2012-2018 Justin Hileman
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Psy\Test;
13
14 class ClassWithSecrets
15 {
16     private const PRIVATE_CONST = 'private and const';
17     private static $privateStaticProp = 'private and static and prop';
18     private $privateProp = 'private and prop';
19
20     private static function privateStaticMethod($extra = null)
21     {
22         if ($extra !== null) {
23             return 'private and static and method with ' . json_encode($extra);
24         }
25
26         return 'private and static and method';
27     }
28
29     private function privateMethod($extra = null)
30     {
31         if ($extra !== null) {
32             return 'private and method with ' . json_encode($extra);
33         }
34
35         return 'private and method';
36     }
37 }