File: ReadonlyScalarProperty.php

package info (click to toggle)
php-deepcopy 1.13.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 616 kB
  • sloc: php: 1,793; makefile: 26
file content (17 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php declare(strict_types=1);

namespace DeepCopy\f014;

class ReadonlyScalarProperty
{
    public readonly string $foo;
    public readonly int $bar;
    public readonly array $baz;

    public function __construct()
    {
        $this->foo = 'foo';
        $this->bar = 1;
        $this->baz = [];
    }
}