public function add($manager)
    {
        if (!is_string($manager)) {
            throw new \InvalidArgumentException('ManagerList::add requires $manager to be a string.');
        }

        $this->managerList[$manager] = $manager;
        $this->managerStatus[self::FLAG_AVAILABLE][$manager] = $manager;

        return $this;
    }
public function add($manager)
    {
        if (!is_string($manager)) {
            throw new \InvalidArgumentException('ManagerList::add requires $manager to be a string.');
        }

        $this->managerList[$manager] = $manager;
        $this->managerStatus[self::FLAG_AVAILABLE][$manager] = $manager;

        return $this;
    }
public function add ( $ manager ) { if ( ! is_string ( $ manager ) ) { throw new \ InvalidArgumentException ( 'ManagerList::add requires $manager to be a string.' ) ; } $ this -> managerList [ $ manager ] = $ manager ; $ this -> managerStatus [ self :: FLAG_AVAILABLE ] [ $ manager ] = $ manager ; return $ this ; }
Adds a manager dsn to the list.

@param string $manager

@return ManagerList
@throws \InvalidArgumentException
Adds a manager dsn to the list .