Skip to content

Commit

Permalink
refactor documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sapayth committed Oct 7, 2024
1 parent 233fe4f commit 11d13f1
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions includes/Integrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
namespace WeDevs\Wpuf;

/**
* The installer class
* The integration class to handle all integrations with our plugin
*
* @since 2.6.0
* @since WPUF_SINCE
*/
class Integrations {
/**
* Holds various class instances
*
* @since 4.0.9
* @since WPUF_SINCE
*
* @var array
*/
Expand All @@ -34,4 +34,21 @@ public function __construct() {
$this->container['acf'] = new Integrations\WPUF_ACF_Compatibility();
}
}

/**
* Magic getter to bypass referencing objects
*
* @since WPUF_SINCE
*
* @param string $prop
*
* @return null|object Class Instance
*/
public function __get( $prop ) {
if ( array_key_exists( $prop, $this->container ) ) {
return $this->container[ $prop ];
}

return null;
}
}

0 comments on commit 11d13f1

Please sign in to comment.