WC_Data_Store | Exception throwing @throws PHPDoc comment added (#20352)

* Exception throwing @throws PHPDoc comment added

* Exception throwing @throws PHPDoc comment added
This commit is contained in:
TheDramatist 2018-06-04 15:45:53 +06:00 committed by Mike Jolley
parent f40f52ef14
commit d8aa0aba90
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,8 @@ class WC_Data_Store {
/** /**
* Re-run the constructor with the object type. * Re-run the constructor with the object type.
*
* @throws Exception When validation fails.
*/ */
public function __wakeup() { public function __wakeup() {
$this->__construct( $this->object_type ); $this->__construct( $this->object_type );
@ -130,6 +132,7 @@ class WC_Data_Store {
* @param string $object_type Name of object. * @param string $object_type Name of object.
* *
* @since 3.0.0 * @since 3.0.0
* @throws Exception When validation fails.
* @return WC_Data_Store * @return WC_Data_Store
*/ */
public static function load( $object_type ) { public static function load( $object_type ) {