Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3) - Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung - Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü - Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person - Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“ - Benutzerverwaltung im Admin, Zugang vorläufig über is_admin - vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/ - PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung - VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
70 lines
2.7 KiB
PHP
70 lines
2.7 KiB
PHP
<?php
|
|
|
|
/**
|
|
* League.Csv (https://csv.thephpleague.com)
|
|
*
|
|
* (c) Ignace Nyamagana Butera <nyamsprod@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace League\Csv;
|
|
|
|
use Iterator;
|
|
|
|
/**
|
|
* @method array nth(int $nth) returns the nth record from the tabular data.
|
|
* @method object|null nthAsObject(int $nth, string $className, array $header = []) returns the nth record from the tabular data as an instance of the defined class name.
|
|
* @method array first() returns the first record from the tabular data.
|
|
* @method object|null firstAsObject(string $className, array $header = []) returns the last record from the tabular data as an instance of the defined class name.
|
|
* @method array last() returns the first record from the tabular data.
|
|
* @method object|null lastAsObject(string $className, array $header = []) returns the last record from the tabular data as an instance of the defined class name.
|
|
* @method Iterator map(callable $callback) Run a map over each container record.
|
|
* @method Iterator getRecordsAsObject(string $className, array $header = []) Returns the tabular data records as an iterator object containing instance of the defined class name.
|
|
*/
|
|
interface TabularData
|
|
{
|
|
/**
|
|
* Returns the header associated with the tabular data.
|
|
*
|
|
* The header must contain unique string or be an empty array
|
|
* if no header is specified.
|
|
*
|
|
* @return array<string>
|
|
*/
|
|
public function getHeader(): array;
|
|
|
|
/**
|
|
* Returns the tabular data records as an iterator object.
|
|
*
|
|
* Each record is represented as a simple array containing strings or null values.
|
|
*
|
|
* If the tabular data has a header record then each record is combined
|
|
* to the header record and the header record is removed from the iterator.
|
|
*
|
|
* If the tabular data is inconsistent. Missing record fields are
|
|
* filled with null values while extra record fields are strip from
|
|
* the returned object.
|
|
*
|
|
* @param array<int, string> $header an optional header mapper to use instead of the tabular data header
|
|
*
|
|
* @return Iterator<array-key, array<array-key, mixed>>
|
|
*/
|
|
public function getRecords(array $header = []): Iterator;
|
|
|
|
/**
|
|
* Returns a single column from the next record of the tabular data.
|
|
*
|
|
* By default, if no value is supplied the first column is fetched
|
|
*
|
|
* @param string|int $index CSV column index
|
|
*
|
|
* @throws UnableToProcessCsv if the column index is invalid or not found
|
|
*
|
|
* @return Iterator<int, mixed>
|
|
*/
|
|
public function fetchColumn(string|int $index = 0): Iterator;
|
|
}
|