26 lines
465 B
PHP
26 lines
465 B
PHP
<?php
|
|
/*
|
|
* This file is part of PHPUnit.
|
|
*
|
|
* (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.
|
|
*/
|
|
|
|
/**
|
|
* An author.
|
|
*/
|
|
class Author
|
|
{
|
|
// the order of properties is important for testing the cycle!
|
|
public $books = [];
|
|
|
|
private $name = '';
|
|
|
|
public function __construct($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
}
|