public final function serialize($value) { throw new \InvalidArgumentException('You can not serialize object value directly'); }