Ground Sunlight

Windowsで作る - PHPプログラミングの開発環境

ユーザ用ツール

サイト用ツール


psr:psr13

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン 両方とも次のリビジョン
psr:psr13 [2020/07/20 08:22]
y2sunlight [3.1 Psr\Link\LinkInterface]
psr:psr13 [2020/07/20 08:27]
y2sunlight [3.2 Psr\Link\EvolvableLinkInterface]
行 197: 行 197:
  
 /** /**
- An evolvable link value object. + 進化可能なリンク値オブジェクト。
- * 発展的なリンク値オブジェクト。+
  */  */
 interface EvolvableLinkInterface extends LinkInterface interface EvolvableLinkInterface extends LinkInterface
 { {
     /**     /**
-     * Returns an instance with the specified href. 
      * 指定されたhrefを持つインスタンスを返します。      * 指定されたhrefを持つインスタンスを返します。
      *      *
      * @param string $href      * @param string $href
-       The href value to include. It must be one of: 
-         - An absolute URI, as defined by RFC 5988. 
-         - A relative URI, as defined by RFC 5988. The base of the relative link 
-           is assumed to be known based on context by the client. 
-         - A URI template as defined by RFC 6570. 
-         - An object implementing __toString() that produces one of the above 
-           values. 
        含めるhref値。 次のいずれかである必要があります。        含めるhref値。 次のいずれかである必要があります。
-         -RFC 5988で定義されている絶対URI。 +         - RFC 5988で定義されている絶対URI。 
-         -RFC 5988で定義されている相対URI。相対リンクのベースは、クライアントによるコンテキストに +         - RFC 5988で定義されている相対URI。相対リンクのベースは、クライアントによるコンテキストに 
-          基づいて認識されていると想定されています。 +           基づいて認識されていると想定されています。 
-         -RFC 6570で定義されているURIテンプレート。 +         - RFC 6570で定義されているURIテンプレート。 
-         -上記の値の1つを生成する__toString()を実装するオブジェクト。+         - 上記の値の1つを生成する__toString()を実装するオブジェクト。
      *      *
-     * An implementing library SHOULD evaluate a passed object to a string 
-     * immediately rather than waiting for it to be returned later. 
      * 実装ライブラリは、渡されたオブジェクトが後で返されるのを待つのではなく、      * 実装ライブラリは、渡されたオブジェクトが後で返されるのを待つのではなく、
      * すぐに文字列に評価する必要があります( SHOULD )。      * すぐに文字列に評価する必要があります( SHOULD )。
行 231: 行 220:
  
     /**     /**
-     * Returns an instance with the specified relationship included. 
      * 指定された関係を含むインスタンスを返します。      * 指定された関係を含むインスタンスを返します。
      *      *
-     * If the specified rel is already present, this method MUST return +     * 指定されたrelがすでに存在する場合、このメソッドはエラーなしで正常に戻る必要があります 
-     * normally without errors, but without adding the rel a second time. +     但し、もう一度relを追加する必要はありません。
-     * 指定されたrelがすでに存在する場合、このメソッドはエラーなしで正常に戻る必要がありますが、 +
-     * もう一度relを追加する必要はありません。+
      *      *
      * @param string $rel      * @param string $rel
-       The relationship value to add. 
        追加する関係の値。        追加する関係の値。
      * @return static      * @return static
行 247: 行 232:
  
     /**     /**
-     * Returns an instance with the specified relationship excluded. 
      * 指定された関係を除外したインスタンスを返します。      * 指定された関係を除外したインスタンスを返します。
      *      *
-     * If the specified rel is already not present, this method MUST return 
-     * normally without errors. 
      * 指定されたrelが既に存在しない場合、このメソッドはエラーなしで正常に戻る必要があります( MUST )。      * 指定されたrelが既に存在しない場合、このメソッドはエラーなしで正常に戻る必要があります( MUST )。
      *      *
      * @param string $rel      * @param string $rel
-       The relationship value to exclude. 
        除外する関係値        除外する関係値
      * @return static      * @return static
行 262: 行 243:
  
     /**     /**
-     * Returns an instance with the specified attribute added. 
      * 指定された属性が追加されたインスタンスを返します。      * 指定された属性が追加されたインスタンスを返します。
      *      *
-     * If the specified attribute is already present, it will be overwritten 
-     * with the new value. 
      * 指定された属性がすでに存在する場合は、新しい値で上書きされます。      * 指定された属性がすでに存在する場合は、新しい値で上書きされます。
      *      *
      * @param string $attribute      * @param string $attribute
-       The attribute to include. 
        含める属性        含める属性
      * @param string $value      * @param string $value
-       The value of the attribute to set. 
        設定する属性の値        設定する属性の値
      * @return static      * @return static
行 280: 行 256:
  
     /**     /**
-     * Returns an instance with the specified attribute excluded. 
      * 指定された属性を除外したインスタンスを返します。      * 指定された属性を除外したインスタンスを返します。
      *      *
-     * If the specified attribute is not present, this method MUST return 
-     * normally without errors. 
      * 指定された属性が存在しない場合、このメソッドはエラーなしで正常に戻る必要があります( MUST )。      * 指定された属性が存在しない場合、このメソッドはエラーなしで正常に戻る必要があります( MUST )。
      *      *
      * @param string $attribute      * @param string $attribute
-       The attribute to remove. 
        削除する属性        削除する属性
      * @return static      * @return static
psr/psr13.txt · 最終更新: 2020/09/01 11:53 by tanaka