<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\PropertyAccess\Tests;classTestPluralAdderRemoverAndSetter{private$emails=[];publicfunctiongetEmails(){return$this->emails;}publicfunctionsetEmails(array$emails){$this->emails=['foo@email.com'];}publicfunctionaddEmail($email){$this->emails[]=$email;}publicfunctionremoveEmail($email){$this->emails=array_diff($this->emails,[$email]);}}