Follows-up
7fdc3d09a3b6. Also document the getData method.
This method seems unused from a quick glance at Code Search, but
there's a lot of false positives from Monolog instances.
To play safe, rather than removing, add hard-deprecation for
a few days just in case we find another hit.
Change-Id: I8aab93744e66c1a583c67f0bbac27a45250a8fbb
- * @deprecated Use getData()
+ * @deprecated since 1.30 Use getData() instead
* @return StatsdData[]
*/
public function getBuffer() {
* @return StatsdData[]
*/
public function getBuffer() {
+ wfDeprecated( __METHOD__, '1.30' );
return !empty( $this->buffer );
}
return !empty( $this->buffer );
}
+ /**
+ * @since 1.30
+ * @return StatsdData[]
+ */
public function getData() {
return $this->buffer;
}
public function getData() {
return $this->buffer;
}