ReflectionClass::hasProperty
En esta página
ReflectionClass::hasProperty
Verifica si una propiedad está definida
Descripción#
public ReflectionClass::hasProperty(string $name): bool
```php
Verifica si la propiedad especificada está definida.
## Parámetros
`name`
El nombre de la propiedad a verificar.
## Valores devueltos
`true` si la propiedad está definida, `false` en caso contrario.
## Ejemplos
Ejemplo con ReflectionClass::hasProperty
```php
Resultado del ejemplo anterior es similar a:
bool(true)
bool(true)
bool(true)
bool(false)
Véase también#
ReflectionClass::hasConstant, ReflectionClass::hasMethod