public function serialize()
    {
        // In order to be able to properly compare style, set static ID value
        $currentId = $this->id;
        $this->setId(0);

        $serializedStyle = serialize($this);

        $this->setId($currentId);

        return $serializedStyle;
    }
public function serialize()
    {
        // In order to be able to properly compare style, set static ID value
        $currentId = $this->id;
        $this->setId(0);

        $serializedStyle = serialize($this);

        $this->setId($currentId);

        return $serializedStyle;
    }
public function serialize ( ) { // In order to be able to properly compare style, set static ID value $ currentId = $ this -> id ; $ this -> setId ( 0 ) ; $ serializedStyle = serialize ( $ this ) ; $ this -> setId ( $ currentId ) ; return $ serializedStyle ; }
Serializes the style for future comparison with other styles.
The ID is excluded from the comparison, as we only care about
actual style properties.

@return string The serialized style
Serializes the style for future comparison with other styles . The ID is excluded from the comparison as we only care about actual style properties .