output/formatting/styles/Map.php
public function name(interfaces\Style $style) : ?string
    {
        foreach ($this->items as $key => $value) {
            if ($value === $style) {
                return $key;
            }
        }

        return null;
    }
public function name(interfaces\Style $style) : ?string
    {
        foreach ($this->items as $key => $value) {
            if ($value === $style) {
                return $key;
            }
        }

        return null;
    }
public function name ( interfaces \ Style $ style ) : ? string { foreach ( $ this -> items as $ key => $ value ) { if ( $ value === $ style ) { return $ key ; } } return null ; }
Returns the name a given Style is set as within the Collection.

@param   interfaces\Style    $style  The Style to search for.
@return  string                      The name of the Style or null if it couldn't be found.
Returns the name a given Style is set as within the Collection .