Enum ext_php_rs::class::ConstructorResult
source · pub enum ConstructorResult<T> {
Ok(T),
Exception(PhpException),
ArgError,
}
Expand description
Result returned from a constructor of a class.
Variants§
Ok(T)
Successfully constructed the class, contains the new class object.
Exception(PhpException)
An exception occurred while constructing the class.
ArgError
Invalid arguments were given to the constructor.