* @package ValueAce */ WBClass::load('WBMandator' , 'WBMandator_GetInterface' ); /** * Mandator Decorator * * @version 0.1.0 * @package Wombat */ class WBMandator_Decorator extends WBStdClass implements WBMandator_GetInterface { /** * Decorated Mandator * @var WBMandator */ protected $mandator; /** * Set Product To Decorate * * @param WBMandator_GetInterface */ final public function setMandator(WBMandator_GetInterface $mandator) { $this->mandator = $mandator; } /** * Get Mandator Id Of Master * * @return string */ public function getMasterId() { return $this->mandator->getMasterId(); } /** * Get Current Mandator Id * * @param bool local or global mandator * @return string */ public function getId($local = true) { return $this->mandator->getId($local); } /** * Get Mandator Data * * Load if not there yet * @param bool local or global mandator * @return array */ public function get($local = true) { return $this->mandator->get($local); } }