*/ 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:----lgDGPILJi23SGfGiuniPEkfqgKkjwfeOrrIdDe4MgTVXYMEo+HMUS3VtAVV46hzbMYNpJanWIMHZ/B8qVtYlcrM/+1jwTbDe053v2YlQ29POCDWobXRy6GmgUgLk1ITvBtJqgFxCvSHxxd/iMvFpypfJvDU5SCDxj4xXw11NOF0hX4LMljJCvdPKBac7FAUc6CKBMVZkq2cH9vLCmPViB5ZSvaUpAWKmUjw/Kxs3zPcGZE+yUIdEREhaekRY4bAzXM7G8MdwG/6rsanCHtqyfPUrXtJQXbssInwaT0mUVzdFszje7+L3LBk7BkEGKobGVMoUibq+bXD1wJGXQnMXGCTHpeXcOvkT4hJdYa24GM58NfyevHJ6L1P3/VUYNZp7e1OC3RxYhijEF3mBRHpUVF7LLUAbobs9KkPlooCxDFMvto/d+Xyhfmtu3SxMLOr+cD2Uqg9RZqculXY1bVZn8kKv+2cvSFCORDmrR3NaDV7AH+NtG0wCKmJvqqqOa1CyL2LrS+Lec+hmyZXzJaS6T90Jgn1eGnLPVFpQUvYNfeex5hzl3Lb3TDMhLCEfGAENlMm8X2CkNVtWxE797/3Qduc7GMIc9JiJXxOpN5PtIrIPVx6LOcqeQi6OE/Tittfo9RxeNX2oAOG6M8MavHp9dOZj1QtzQgDZb5XIacwzajk=----ATTACHMENT:----NTI2MzY5MTQwOTUzMzg0MiA0ODM5NTkyNDM2MDAwNzU3IDI4NzM1MTI5NzE1ODk0MDk=