From c7615d678747c52fe4bb123257fc582f70b60886 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 23 Feb 2021 06:50:38 +0100 Subject: update to 0.4.0 raise dependency on PHP 8 --- REFLECTION | 97 +++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 64 insertions(+), 33 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index f829ea7..8e0c58b 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,45 +1,76 @@ -Extension [ extension #73 csv version 0.3.1 ] { +Extension [ extension #69 csv version 0.4.0 ] { - - Functions { - Function [ function csv_array_to_row ] { + - Classes [1] { + Class [ final class CSV ] { - - Parameters [4] { - Parameter #0 [ array $fields ] - Parameter #1 [ string $delimiter ] - Parameter #2 [ string $enclosure ] - Parameter #3 [ string $eolSequence ] + - Constants [0] { } - - Return [ string ] - } - Function [ function csv_collection_to_file ] { - - Parameters [4] { - Parameter #0 [ array $collection ] - Parameter #1 [ string $delimiter ] - Parameter #2 [ string $enclosure ] - Parameter #3 [ string $eolSequence ] + - Static properties [0] { } - - Return [ string ] - } - Function [ function csv_file_to_collection ] { - - Parameters [4] { - Parameter #0 [ string $file ] - Parameter #1 [ string $delimiter ] - Parameter #2 [ string $enclosure ] - Parameter #3 [ string $eolSequence ] + - Static methods [5] { + Method [ static public method arrayToRow ] { + + - Parameters [4] { + Parameter #0 [ array $fields ] + Parameter #1 [ string $delimiter = ',' ] + Parameter #2 [ string $enclosure = '"' ] + Parameter #3 [ string $eolSequence = "\r\n" ] + } + - Return [ string ] + } + + Method [ static public method rowToArray ] { + + - Parameters [4] { + Parameter #0 [ string $row ] + Parameter #1 [ string $delimiter = ',' ] + Parameter #2 [ string $enclosure = '"' ] + Parameter #3 [ string $eolSequence = "\r\n" ] + } + - Return [ array ] + } + + Method [ static public method collectionToBuffer ] { + + - Parameters [4] { + Parameter #0 [ iterable $collection ] + Parameter #1 [ string $delimiter = ',' ] + Parameter #2 [ string $enclosure = '"' ] + Parameter #3 [ string $eolSequence = "\r\n" ] + } + - Return [ string ] + } + + Method [ static public method bufferToCollection ] { + + - Parameters [4] { + Parameter #0 [ string $buffer ] + Parameter #1 [ string $delimiter = ',' ] + Parameter #2 [ string $enclosure = '"' ] + Parameter #3 [ string $eolSequence = "\r\n" ] + } + - Return [ array ] + } + + Method [ static public method bufferToCollectionLax ] { + + - Parameters [4] { + Parameter #0 [ string $buffer ] + Parameter #1 [ string $delimiter = ',' ] + Parameter #2 [ string $enclosure = '"' ] + Parameter #3 [ string $eolSequence = "\r\n" ] + } + - Return [ array ] + } + } + + - Properties [0] { } - - Return [ array ] - } - Function [ function csv_row_to_array ] { - - Parameters [4] { - Parameter #0 [ string $row ] - Parameter #1 [ string $delimiter ] - Parameter #2 [ string $enclosure ] - Parameter #3 [ string $eolSequence ] + - Methods [0] { } - - Return [ array ] } } } -- cgit