wp/wp-includes/html-api/class-wp-html-text-replacement.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    54 	 *
    54 	 *
    55 	 * @param int    $start  Byte offset into document where replacement span begins.
    55 	 * @param int    $start  Byte offset into document where replacement span begins.
    56 	 * @param int    $length Byte length of span in document being replaced.
    56 	 * @param int    $length Byte length of span in document being replaced.
    57 	 * @param string $text   Span of text to insert in document to replace existing content from start to end.
    57 	 * @param string $text   Span of text to insert in document to replace existing content from start to end.
    58 	 */
    58 	 */
    59 	public function __construct( $start, $length, $text ) {
    59 	public function __construct( int $start, int $length, string $text ) {
    60 		$this->start  = $start;
    60 		$this->start  = $start;
    61 		$this->length = $length;
    61 		$this->length = $length;
    62 		$this->text   = $text;
    62 		$this->text   = $text;
    63 	}
    63 	}
    64 }
    64 }