<?php

namespace RulerZ\Model;

use Hoa\Ruler\Model as HoaModel;
use RulerZ\Visitor;

class Rule extends HoaModel\Model
{
    /**
     * Returns a list of accessed variables.
     *
     * @return \Hoa\Ruler\Model\Bag\Context[]
     */
    public function getAccesses()
    {
        $visitor = new Visitor\AccessCollectorVisitor();

        return $visitor->visit($this);
    }

    /**
     * Returns a list of used operators.
     *
     * @return \Hoa\Ruler\Model\Operator[]
     */
    public function getOperators()
    {
        $visitor = new Visitor\OperatorCollectorVisitor();

        return $visitor->visit($this);
    }

    /**
     * Returns a list of used parameters.
     *
     * @return \Hoa\Ruler\Model\Parameter[]
     */
    public function getParameters()
    {
        $visitor = new Visitor\ParameterCollectorVisitor();

        return $visitor->visit($this);
    }
}

<?php

namespace RulerZ\Model;

use Hoa\Ruler\Model as HoaModel;
use RulerZ\Visitor;

class Rule extends HoaModel\Model
{
    /**
     * Returns a list of accessed variables.
     *
     * @return \Hoa\Ruler\Model\Bag\Context[]
     */
    public function getAccesses()
    {
        $visitor = new Visitor\AccessCollectorVisitor();

        return $visitor->visit($this);
    }

    /**
     * Returns a list of used operators.
     *
     * @return \Hoa\Ruler\Model\Operator[]
     */
    public function getOperators()
    {
        $visitor = new Visitor\OperatorCollectorVisitor();

        return $visitor->visit($this);
    }

    /**
     * Returns a list of used parameters.
     *
     * @return \RulerZ\Model\Parameter[]
     */
    public function getParameters()
    {
        $visitor = new Visitor\ParameterCollectorVisitor();

        return $visitor->visit($this);
    }
}

Fix incorrect phpdoc return type
Fix incorrect phpdoc return type
