From d8aa0aba90095543c0ddcce7ad9bfeb64356202f Mon Sep 17 00:00:00 2001 From: TheDramatist Date: Mon, 4 Jun 2018 15:45:53 +0600 Subject: [PATCH] WC_Data_Store | Exception throwing @throws PHPDoc comment added (#20352) * Exception throwing @throws PHPDoc comment added * Exception throwing @throws PHPDoc comment added --- includes/class-wc-data-store.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/class-wc-data-store.php b/includes/class-wc-data-store.php index 983c12fd682..c7e03d12486 100644 --- a/includes/class-wc-data-store.php +++ b/includes/class-wc-data-store.php @@ -119,6 +119,8 @@ class WC_Data_Store { /** * Re-run the constructor with the object type. + * + * @throws Exception When validation fails. */ public function __wakeup() { $this->__construct( $this->object_type ); @@ -130,6 +132,7 @@ class WC_Data_Store { * @param string $object_type Name of object. * * @since 3.0.0 + * @throws Exception When validation fails. * @return WC_Data_Store */ public static function load( $object_type ) {