Newscoop\ValueObject::__construct PHP Méthode

__construct() public méthode

public __construct ( array $values = null )
$values array
    public function __construct($values = null)
    {
        if (is_array($values)) {
            foreach ($values as $key => $val) {
                if (property_exists($this, $key) && $val !== null) {
                    $this->{$key} = $val;
                }
            }
        }
    }
ValueObject