LLMS_REST_API_Key::__construct( int $id = null, bool $hydrate = true )
Constructor
Parameters Parameters
- $id
-
(int) (Optional) API Key ID.
Default value: null
- $hydrate
-
(bool) (Optional) If true, hydrates the object on instantiation if an ID is supplied.
Default value: true
Source Source
File: libraries/lifterlms-rest/includes/models/class-llms-rest-api-key.php
public function __construct( $id = null, $hydrate = true ) { $this->id = $id; if ( $this->id && $hydrate ) { $this->hydrate(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |