src/Charcoal/Source/AbstractSource.php
protected function resolvePropertyName($property)
    {
        if ($property instanceof PropertyInterface) {
            $property = $property->ident();
        }

        if (!is_string($property)) {
            throw new InvalidArgumentException(
                'Property must be a string.'
            );
        }

        if ($property === '') {
            throw new InvalidArgumentException(
                'Property can not be empty.'
            );
        }

        return $property;
    }
protected function resolvePropertyName($property)
    {
        if ($property instanceof PropertyInterface) {
            $property = $property->ident();
        }

        if (!is_string($property)) {
            throw new InvalidArgumentException(
                'Property must be a string.'
            );
        }

        if ($property === '') {
            throw new InvalidArgumentException(
                'Property can not be empty.'
            );
        }

        return $property;
    }
protected function resolvePropertyName ( $ property ) { if ( $ property instanceof PropertyInterface ) { $ property = $ property -> ident ( ) ; } if ( ! is_string ( $ property ) ) { throw new InvalidArgumentException ( 'Property must be a string.' ) ; } if ( $ property === '' ) { throw new InvalidArgumentException ( 'Property can not be empty.' ) ; } return $ property ; }
Resolve the name for the given property, throws an Exception if not.

@param  mixed $property Property to resolve.
@throws InvalidArgumentException If property is not a string, empty, or invalid.
@return string The property name.
Resolve the name for the given property throws an Exception if not .