Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getters for protected variables from Artists class #10

Open
mkovalch opened this issue Jul 21, 2014 · 1 comment
Open

Getters for protected variables from Artists class #10

mkovalch opened this issue Jul 21, 2014 · 1 comment

Comments

@mkovalch
Copy link

Not exactly an issue, but is there way to access private variables in search() result;
for example:
[type:MusicBrainz\Artist:private] => Group
[sortName:MusicBrainz\Artist:private] => AFI
[gender:MusicBrainz\Artist:private] =>
[country:MusicBrainz\Artist:private] => US
[beginDate:MusicBrainz\Artist:private] => 1991
[endDate:MusicBrainz\Artist:private] =>
[data:MusicBrainz\Artist:private] => Array

There are functions getName(), getScore(), getType(), getRelease() in Artists class, but i didn't find getGender(), getCountry() and so on.

Is there a different way to get this information? I can add my own methods, but this will get reset on next composer update :( Am I missing something?

@mikealmond
Copy link
Owner

You are not missing anything. I built this library to use with a personal project and have been adding things as I need them.

If you want to add those methods and create a pull request it would be greatly appreciated!

I hope to spend more time on this library in the upcoming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants