Friend spotlight!
Whimsical Animations course
Friend spotlight!
NEW Whimsical Animations course
Friend spotlight! NEW Whimsical Animations course
huge discount only this week
Friend spotlight! Want to make your project stand out? NEW Whimsical Animations course huge discount only this week
Bridge

Bridge を PHP で

Bridge 構造に関するデザインパターンの一つで ビジネス・ロジックや巨大なクラスを独立して開発可能なクラス階層に分割します

階層の一つ 抽象化と呼ばれる 二つ目の階層 実装 のオブジェクトへの参照を持ちます 抽象化階層は その呼び出しのいくつか 場合によっては大多数 を実装階層のオブジェクトに委任します すべての実装は 共通のインターフェースを持っているので 抽象化の中で入れ替え可能です

複雑度

人気度

使用例 Bridge パターンは 複数の種類のデータベース・サーバーをサポートする時 あるいはある種の API プロバイダー クラウド・プラットフォーム ソーシャル・ネットワークなど を複数利用したい場合に特に便利です

見つけ方 Bridge は 制御するものと それが依存するいくつかの異なるプラットフォームとが明らかに分かれていることから識別できます

他言語での Bridge

Bridge を C# で Bridge を C++ で Bridge を Go で Bridge を Java で Bridge を Python で Bridge を Ruby で Bridge を Rust で Bridge を Swift で Bridge を TypeScript で