<?php

namespace _JchOptimizeVendor\Laminas\Cache\Storage;

class PostEvent extends Event
{
    /**
     * The result/return value.
     *
     * @var mixed
     */
    protected $result;

    /**
     * Constructor.
     *
     * Accept a target and its parameters.
     *
     * @param string $name
     * @param mixed  $result
     */
    public function __construct($name, StorageInterface $storage, \ArrayObject $params, &$result)
    {
        parent::__construct($name, $storage, $params);
        $this->setResult($result);
    }

    /**
     * Set the result/return value.
     *
     * @param mixed $value
     *
     * @return PostEvent
     */
    public function setResult(&$value)
    {
        $this->result = &$value;

        return $this;
    }

    /**
     * Get the result/return value.
     *
     * @return mixed
     */
    public function &getResult()
    {
        return $this->result;
    }
}
