public function add(Theme $theme)
    {
        if ($this->exists($theme->name)) {
            throw new Exceptions\themeAlreadyExists($theme);
        }
        $this->themes[] = $theme;
        return $theme;
    }
public function add(Theme $theme)
    {
        if ($this->exists($theme->name)) {
            throw new Exceptions\themeAlreadyExists($theme);
        }
        $this->themes[] = $theme;
        return $theme;
    }
public function add ( Theme $ theme ) { if ( $ this -> exists ( $ theme -> name ) ) { throw new Exceptions \ themeAlreadyExists ( $ theme ) ; } $ this -> themes [ ] = $ theme ; return $ theme ; }
Register a new theme

@return Theme
Register a new theme