File: ChildWithParentPrivate.php

package info (click to toggle)
php-zumba-json-serializer 3.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: php: 1,260; xml: 20; makefile: 13; sh: 7
file content (27 lines) | stat: -rw-r--r-- 530 bytes parent folder | download
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

namespace Zumba\JsonSerializer\Test\SupportClasses;

class ParentWithPrivate
{
    private $parentPrivate = 'parentPrivateValue';

    public $parentPublic = 'parentPublicValue';

    public function getParentPrivate()
    {
        return $this->parentPrivate;
    }

    public function setParentPrivate($value)
    {
        $this->parentPrivate = $value;
    }
}

class ChildWithParentPrivate extends ParentWithPrivate
{
    public $childPublic = 'childPublicValue';

    private $childPrivate = 'childPrivateValue';
}