* @package generis */ class common_ext_Namespace { /** * A unique identifier of the namespace * * @var string */ protected $modelId; /** * the namespace URI * * @var string */ protected $uri; /** * Namespace constructor. * * @author Jerome Bogaerts, * * @param string id * @param string uri */ public function __construct($id = '', $uri = '') { $this->modelId = (string) $id; $this->uri = $uri; } /** * Get the identifier of the namespace instance * * @author Jerome Bogaerts, * @return string */ public function getModelId() { return $this->modelId; } /** * Get the namespace URI * * @author Jerome Bogaerts, * @return string */ public function getUri() { return $this->uri; } /** * Magic method, return the Namespace URI * * @author Jerome Bogaerts, * @return string */ public function __toString() { return $this->getUri(); } }