storage[ $id ] = $item; } /** * Retrieves an item from the registry. * * @param string|int $id Registry index. * * @return object|null Object if a class is registered for the ID, otherwise null. */ public function get( $id ) { return array_key_exists( $id, $this->storage ) ? $this->storage[ $id ] : null; } }