Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Assert

Structures de données

class  Assert
 
class  Assertion
 
class  AssertionChain
 
interface  AssertionFailedException
 
class  InvalidArgumentException
 
class  LazyAssertion
 
class  LazyAssertionException
 

Fonctions

 that ($value, $defaultMessage=null, string $defaultPropertyPath=null)
 
 thatAll ($values, $defaultMessage=null, string $defaultPropertyPath=null)
 
 thatNullOr ($value, $defaultMessage=null, string $defaultPropertyPath=null)
 
 lazy ()
 

Description détaillée

Assert

LICENSE

This source file is subject to the MIT license that is bundled with this package in the file LICENSE.txt. If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to konta.nosp@m.kt@b.nosp@m.eberl.nosp@m.ei.d.nosp@m.e so I can send you a copy immediately.

Documentation des fonctions

◆ lazy()

◆ that()

◆ thatAll()

Assert\thatAll (   $values,
  $defaultMessage = null,
string  $defaultPropertyPath = null 
)

◆ thatNullOr()

Assert\thatNullOr (   $value,
  $defaultMessage = null,
string  $defaultPropertyPath = null 
)

Start validation and allow NULL, returns AssertionChain.

Paramètres
mixed$value
string | callable | null$defaultMessage
string$defaultPropertyPath
Obsolète:
In favour of Assert::thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
Exemples:
C:/laragon/www/_install/Joomla_422-Stable-Full_Package_French_v1/libraries/vendor/beberlei/assert/lib/Assert/Assert.php, et C:/laragon/www/_install/Joomla_422-Stable-Full_Package_French_v1/libraries/vendor/beberlei/assert/lib/Assert/functions.php.

Références $value.