Sets the serialization max depth for this attribute.
public function setMaxDepth(?int $maxDepth) : void;