Storm\Drivers\Fluent\Object\Functional\ASTBase::AccessorsMatch PHP Method

AccessorsMatch() final protected method

final protected AccessorsMatch ( Accessor $Accessor, Accessor $OtherAccessor, &$MatchedAccessorType = null )
$Accessor Storm\Drivers\Base\Object\Properties\Accessors\Accessor
$OtherAccessor Storm\Drivers\Base\Object\Properties\Accessors\Accessor
    protected final function AccessorsMatch(Accessor $Accessor, Accessor $OtherAccessor, &$MatchedAccessorType = null)
    {
        switch ($this->PropertyMode) {
            case self::PropertiesAreGetters:
                return $this->GetterAccessorsMatch($Accessor, $OtherAccessor, $MatchedAccessorType);
            case self::PropertiesAreSetters:
                return $this->SetterAccessorsMatch($Accessor, $OtherAccessor, $MatchedAccessorType);
            case self::PropertiesAreGettersOrSetters:
                return $this->GetterAccessorsMatch($Accessor, $OtherAccessor, $MatchedAccessorType) || $this->SetterAccessorsMatch($Accessor, $OtherAccessor, $MatchedAccessorType);
            default:
                throw new FunctionException('No');
        }
    }