public function setExtra($extra)
    {
        $resultData = $this->hydrateIfJsonToArray($extra);
        if (!empty($resultData)) {
            $this->extra = $resultData;
        }
        else {
            $this->extra = [];
        }
    }
public function setExtra($extra)
    {
        $resultData = $this->hydrateIfJsonToArray($extra);
        if (!empty($resultData)) {
            $this->extra = $resultData;
        }
        else {
            $this->extra = [];
        }
    }
public function setExtra ( $ extra ) { $ resultData = $ this -> hydrateIfJsonToArray ( $ extra ) ; if ( ! empty ( $ resultData ) ) { $ this -> extra = $ resultData ; } else { $ this -> extra = [ ] ; } }
Set data to extra array

@param string|array  $extra  Data that need to be set into extra array

@return void
Set data to extra array