public static function getNameFromArray(array $properties)
    {
        if (!Helpers::isKeyExists($properties, 'name')
            || empty($fieldName = Helpers::removeNonEnglishChars($properties['name']))
        ) {
            throw new Exception("The field 'name' was not provided!");
        }

        return $fieldName;
    }
public static function getNameFromArray(array $properties)
    {
        if (!Helpers::isKeyExists($properties, 'name')
            || empty($fieldName = Helpers::removeNonEnglishChars($properties['name']))
        ) {
            throw new Exception("The field 'name' was not provided!");
        }

        return $fieldName;
    }
public static function getNameFromArray ( array $ properties ) { if ( ! Helpers :: isKeyExists ( $ properties , 'name' ) || empty ( $ fieldName = Helpers :: removeNonEnglishChars ( $ properties [ 'name' ] ) ) ) { throw new Exception ( "The field 'name' was not provided!" ) ; } return $ fieldName ; }
It gets the name of the field from a given array

@param array $properties
@throws Exception

@return $this
It gets the name of the field from a given array