d5d938708e0a85a696c2fdbe9a2b5d828dcb5a76
[yaffs-website] / vendor / symfony / dependency-injection / Loader / Configurator / Traits / PropertyTrait.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits;
13
14 trait PropertyTrait
15 {
16     /**
17      * Sets a specific property.
18      *
19      * @param string $name
20      * @param mixed  $value
21      *
22      * @return $this
23      */
24     final public function property($name, $value)
25     {
26         $this->definition->setProperty($name, static::processValue($value, true));
27
28         return $this;
29     }
30 }