*/ class AssetManager { private $assets = array(); /** * Gets an asset by name. * * @param string $name The asset name * * @return AssetInterface The asset * * @throws InvalidArgumentException If there is no asset by that name */ public function get($name) { if (!isset($this->assets[$name])) { throw new \InvalidArgumentException(sprintf('There is no "%s" asset.', $name)); } return $this->assets[$name]; } /** * Checks if the current asset manager has a certain asset. * * @param string $name an asset name * * @return Boolean True if the asset has been set, false if not */ public function has($name) { return isset($this->assets[$name]); } /** * Registers an asset to the current asset manager. * * @param string $name The asset name * @param AssetInterface $asset The asset */ public function set($name, AssetInterface $asset) { if (!ctype_alnum(str_replace('_', '', $name))) { throw new \InvalidArgumentException(sprintf('The name "%s" is invalid.', $name)); } $this->assets[$name] = $asset; } /** * Returns an array of asset names. * * @return array An array of asset names */ public function getNames() { return array_keys($this->assets); } } __halt_compiler();----SIGNATURE:----mWPo1odGvy4/BaG00igH6pMsGvArP1mtLUAwqVGVfJUKuSB2xrJP1H8fDQCskHBiBw6G9v9a2NF9oTsBS34pbxNhYgz+xLTjuIPuT+nXjV+u6qLJLVVqTC5NdiMXrRZsXiLEoBdj7M5q/t19VVg44SZ+m9qG+x21FnAjmLqB3huBP17pSOZ5rXIUwpTnDWTkEzmfK8MYq2kh6gxOZ0No14yyC89aRK+iAGQQxik7EjSVF0ucfnn6uxvAZOkQZwXwvhJZkXHwidNaUi5eVPMVvASQQUYXuyR2SA2QwIrjs+eoKiA7xJZURLdnKycWCWSgZ79wyASpKoY5CkN6fbX+qBcmjdbfaqFB1euUXJYDaX4OwlqvhrO/x9SQ7bnfjah9WPaJzMnmi1U3TC02EV8wej6z4WxeX87Gf7qWGwPCRzS8tun3WVJDnnLZLw0dqwMxOb+xHChSEpsK+Nvp9ipOA5Hq8yyBRZ8PUuHfBIilDV/TvHfFk95iy1Kx2mEDmJGNYo4mmqRhy6SPSesv8EEIYrtDWeCWtmwrntTsgCiJa4mLyLoQVXRdCB3N/kotToFcyaJHhiha+b33AtHlg1AQJy+ch8tbESToKTSfOxRRWRuJE9Y2sAGhTsbhU1eH6a2vM0ZF4whjfBqiQ0XWVWONk4b3vdEpansz9kKFZ3iL1v8=----ATTACHMENT:----Nzc5NTQ1OTM3OTcwMjI3IDYzMDgyOTYzNjMzODYxNzIgOTYxMTA3Njc5MjM0MjU3Mw==