src/PropertyAccessible.php
final public function hasProperty($property)
    {
        if (!Str::is($property)
            || !Str::match($property, "/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/")
            || $property == 'this'
        ) {
            throw new \InvalidArgumentException(
                "The \$property parameter must be a string and follow the PHP rules of variable naming."
            );
        }

        return property_exists($this, $property);
    }
final public function hasProperty($property)
    {
        if (!Str::is($property)
            || !Str::match($property, "/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/")
            || $property == 'this'
        ) {
            throw new \InvalidArgumentException(
                "The \$property parameter must be a string and follow the PHP rules of variable naming."
            );
        }

        return property_exists($this, $property);
    }
final public function hasProperty ( $ property ) { if ( ! Str :: is ( $ property ) || ! Str :: match ( $ property , "/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/" ) || $ property == 'this' ) { throw new \ InvalidArgumentException ( "The \$property parameter must be a string and follow the PHP rules of variable naming." ) ; } return property_exists ( $ this , $ property ) ; }
Checks if the object has the given property.

@param string $property The property to check.

@return bool Returns true if the property exists, false otherwise.

@see http://docs.php.net/manual/en/language.variables.basics.php
@throws \InvalidArgumentException
Checks if the object has the given property .