for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Serializer package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\Serializer\Mapping\Annotation;
/**
* @Annotation
* @Target({"CLASS"})
* @author GeLo <[email protected]>
class XmlRoot
{
* @var string
private $name;
* @param mixed[] $data
public function __construct(array $data)
$this->name = isset($data['value']) ? $data['value'] : null;
}
* @return string
public function getName()
return $this->name;