| @@ 64-72 (lines=9) @@ | ||
| 61 | /** |
|
| 62 | * @inheritDoc |
|
| 63 | */ |
|
| 64 | public function serialize() |
|
| 65 | { |
|
| 66 | $params = $this->parameters; |
|
| 67 | if ($params['displayRule'] instanceof \Closure) { |
|
| 68 | $params['displayRule'] = new SerializableClosure($params['displayRule']); |
|
| 69 | } |
|
| 70 | ||
| 71 | return serialize($params); |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * @inheritDoc |
|
| @@ 52-60 (lines=9) @@ | ||
| 49 | /** |
|
| 50 | * @inheritDoc |
|
| 51 | */ |
|
| 52 | public function serialize() |
|
| 53 | { |
|
| 54 | $params = $this->parameters; |
|
| 55 | if ($params['displayRule'] instanceof \Closure) { |
|
| 56 | $params['displayRule'] = new SerializableClosure($params['displayRule']); |
|
| 57 | } |
|
| 58 | ||
| 59 | return serialize($params); |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @inheritDoc |
|