protected function _defaultData($content)
    {
        $content = @unserialize($content);
        if (empty($content) || !is_a($content, \stdClass::class)) {
            $content = new \stdClass;
        }
        $content->text = isset($content->text) ? $content->text : '';
        $content->colour = isset($content->colour) ? $content->colour : '';
        return $content;
    }
protected function _defaultData($content)
    {
        $content = @unserialize($content);
        if (empty($content) || !is_a($content, \stdClass::class)) {
            $content = new \stdClass;
        }
        $content->text = isset($content->text) ? $content->text : '';
        $content->colour = isset($content->colour) ? $content->colour : '';
        return $content;
    }
protected function _defaultData ( $ content ) { $ content = @ unserialize ( $ content ) ; if ( empty ( $ content ) || ! is_a ( $ content , \ stdClass :: class ) ) { $ content = new \ stdClass ; } $ content -> text = isset ( $ content -> text ) ? $ content -> text : '' ; $ content -> colour = isset ( $ content -> colour ) ? $ content -> colour : '' ; return $ content ; }
Return valid stringwcolour data
@param $content
@return \stdClass
Return valid stringwcolour data