File: ExceptionThrower.php

package info (click to toggle)
phpunit-object-enumerator 7.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,584 kB
  • sloc: php: 165; xml: 47; makefile: 18
file content (27 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php declare(strict_types=1);
/*
 * This file is part of sebastian/object-enumerator.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace SebastianBergmann\ObjectEnumerator\Fixtures;

use RuntimeException;

class ExceptionThrower
{
    private $property;

    public function __construct()
    {
        $this->property = null;
    }

    public function __get($property): void
    {
        throw new RuntimeException;
    }
}