Box\Spout\Writer\Common\Helper\AbstractStyleHelper::hasStyleAlreadyBeenRegistered PHP Method

hasStyleAlreadyBeenRegistered() protected method

Returns whether the given style has already been registered.
protected hasStyleAlreadyBeenRegistered ( Style $style ) : boolean
$style Box\Spout\Writer\Style\Style
return boolean
    protected function hasStyleAlreadyBeenRegistered($style)
    {
        $serializedStyle = $style->serialize();
        // Using isset here because it is way faster than array_key_exists...
        return isset($this->serializedStyleToStyleIdMappingTable[$serializedStyle]);
    }