src/Charcoal/Property/DescribablePropertyTrait.php
public function hasProperty($propertyIdent)
    {
        if (!is_string($propertyIdent)) {
            throw new InvalidArgumentException(
                'Property identifier must be a string.'
            );
        }

        $metadata   = $this->metadata();
        $properties = $metadata->properties();

        return isset($properties[$propertyIdent]);
    }
public function hasProperty($propertyIdent)
    {
        if (!is_string($propertyIdent)) {
            throw new InvalidArgumentException(
                'Property identifier must be a string.'
            );
        }

        $metadata   = $this->metadata();
        $properties = $metadata->properties();

        return isset($properties[$propertyIdent]);
    }
public function hasProperty ( $ propertyIdent ) { if ( ! is_string ( $ propertyIdent ) ) { throw new InvalidArgumentException ( 'Property identifier must be a string.' ) ; } $ metadata = $ this -> metadata ( ) ; $ properties = $ metadata -> properties ( ) ; return isset ( $ properties [ $ propertyIdent ] ) ; }
Determine if the model has the given property.

@param  string $propertyIdent The property identifier to lookup.
@throws InvalidArgumentException If the property identifier is not a string.
@return boolean
Determine if the model has the given property .