MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

iMakefile

MMO\core\interfaces · 1 symbole · générée le 27 Oct 2026

interface

iMakefile

iMakefile.php:8

A build step that knows its output file and the files it depends on, and rebuilds the output only when one of them changed (tWithMakefiles).

interface MMO\core\interfaces\iMakefile
Espace de noms
MMO\core\interfaces

Méthodes10

addDependFolder($folder, $inc, $exc, $first)

abstractiMakefile.php:29

Depend on every file of a folder.

abstract function addDependFolder( string $folder, ?string $inc = null, ?string $exc = null, bool $first = false )
$folderstring
$inc = nullnull | stringregex of the files to include
$exc = nullnull | stringregex of the files to exclude
$first = falseboolif true, put them before the existing ones
retourne

addDepends($depends, $first)

abstractiMakefile.php:19
abstract function addDepends(array|string $depends, bool $first = false)
$dependsarray | stringone dependency, or several
$first = falseboolif true, put them before the existing ones
retourne

autoMake($opts)

abstractiMakefile.php:50
abstract function autoMake(array $opts = [])
$opts = []array
retournefalse if nothing was made (up to date), otherwise what the build returned

getDepends($basepath)

abstractiMakefile.php:41
abstract function getDepends(string $basepath = '')
$basepath = ''string
retournethe dependencies, resolved against $basepath when given

isUpToDate($filename)

abstractiMakefile.php:44
abstract function isUpToDate(string $filename)
$filenamestring
retournetrue if $filename exists and no dependency is newer

make($filename, $opts)

abstractiMakefile.php:47
abstract function make(string $filename, array $opts = [])
$filenamestring
$opts = []array
retournefalse if nothing was made, otherwise what the build returned

removeDepend($depend)

abstractiMakefile.php:38
abstract function removeDepend(string $depend)
$dependstring
retournefalse if $depend was not a dependency

setDepends($depends)

abstractiMakefile.php:35
abstract function setDepends(array $depends)
$dependsarrayreplaces every dependency
retourne