view vendor/myclabs/deep-copy/fixtures/f006/A.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 1fec387a4317
children
line wrap: on
line source
<?php

namespace DeepCopy\f006;

class A
{
    public $cloned = false;
    private $aProp;

    public function getAProp()
    {
        return $this->aProp;
    }

    public function setAProp($prop)
    {
        $this->aProp = $prop;

        return $this;
    }

    public function __clone()
    {
        $this->cloned = true;
    }
}