From e644c4c46ea73d2c4c0f7d41b48df4cc2b97ef6d Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Tue, 6 Mar 2018 14:03:49 +0000 Subject: [PATCH] add Componere\cast to documentation git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344454 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/componere/book.xml | 1 + .../componere/functions/componere.cast.xml | 101 ++++++++++++++++++ reference/componere/reference.xml | 30 ++++++ reference/componere/versions.xml | 2 + 4 files changed, 134 insertions(+) create mode 100644 reference/componere/functions/componere.cast.xml create mode 100644 reference/componere/reference.xml diff --git a/reference/componere/book.xml b/reference/componere/book.xml index 3d1840d00d..1ef0623fe3 100644 --- a/reference/componere/book.xml +++ b/reference/componere/book.xml @@ -18,6 +18,7 @@ &reference.componere.componere.patch; &reference.componere.componere.method; &reference.componere.componere.value; + &reference.componere.reference; + + + + Componere\cast + Casting + + + + &reftitle.description; + + objectComponere\cast + stringclass + objectinstance + + + Shall cast instance to class + + + + + + &reftitle.parameters; + + + class + + + A user defined class name + + + + + instance + + + An object with a user defined type + + + + + + + + &reftitle.returnvalues; + + A clone of instance, of type class + + + + + Exceptions + + + Shall throw InvalidArgumentException if instance is not of a user defined standard type + + + + + Shall throw InvalidArgumentException if class is an interface + + + + + Shall throw InvalidArgumentException if class is a trait + + + + + Shall throw InvalidArgumentException if class is an abstract + + + + + Shall throw InvalidArgumentException if class is not compatible with the type of instance + + + + + + diff --git a/reference/componere/reference.xml b/reference/componere/reference.xml new file mode 100644 index 0000000000..ba22b4bf90 --- /dev/null +++ b/reference/componere/reference.xml @@ -0,0 +1,30 @@ + + + + + Componere &Functions; + + &reference.componere.entities.functions; + + + + diff --git a/reference/componere/versions.xml b/reference/componere/versions.xml index 36f740eb34..1c631a4c70 100644 --- a/reference/componere/versions.xml +++ b/reference/componere/versions.xml @@ -55,6 +55,8 @@ + +