<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
// @codingStandardsIgnoreFile

namespace Creatuity\Interception\Test\Integration\CompiledInterceptor\Custom\Module\Model;

class ComplexItem
{
    private $attribute;
    private $variadicAttribute;

    public function getName()
    {
        return $this->attribute;
    }

    /**
     * @param $value
     */
    public function setValue($value)
    {
        $this->attribute = $value;
    }

    public function & getReference()
    {
    }

    /**
     * @param mixed ...$variadicValue
     */
    public function firstVariadicParameter(...$variadicValue)
    {
        $this->variadicAttribute = $variadicValue;
    }

    /**
     * @param $value
     * @param mixed ...$variadicValue
     */
    public function secondVariadicParameter($value, ...$variadicValue)
    {
        $this->attribute = $value;
        $this->variadicAttribute = $variadicValue;
    }

    /**
     * @param mixed ...$variadicValue
     */
    public function byRefVariadic(& ...$variadicValue)
    {
        $this->variadicAttribute = $variadicValue;
    }

    /**
     *
     */
    public function returnsSelf()
    {
        return $this;
    }
}
