lib/Accessible/MethodManager/SetManager.php
public static function add(&$set, $args)
    {
        self::assertArgsNumber(1, $args);

        $value = $args[0];

        foreach ($set as $item) {
            if ($item === $value) {
                return;
            }
        }

        $set[] = $value;
    }
public static function add(&$set, $args)
    {
        self::assertArgsNumber(1, $args);

        $value = $args[0];

        foreach ($set as $item) {
            if ($item === $value) {
                return;
            }
        }

        $set[] = $value;
    }
public static function add ( & $ set , $ args ) { self :: assertArgsNumber ( 1 , $ args ) ; $ value = $ args [ 0 ] ; foreach ( $ set as $ item ) { if ( $ item === $ value ) { return ; } } $ set [ ] = $ value ; }
Adds an element to the set if it is not already present.

@param array|Traversable $set
@param array $args
Adds an element to the set if it is not already present .