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

Adding toArray() and getDomain() function #6

Merged
merged 3 commits into from
Jul 31, 2023
Merged

Adding toArray() and getDomain() function #6

merged 3 commits into from
Jul 31, 2023

Conversation

pschur
Copy link
Contributor

@pschur pschur commented Jul 31, 2023

I've added to the classes Baraja\WebCrawler\Entity\CrawledResult and Baraja\WebCrawler\Entity\Url the method toArray, which returns all data from the class as array.

I've also added getDomain function to the Baraja\WebCrawler\Entity\Url class. Which is only an alias.

Adding the method toArray which returns all values given to the class.

This will be helpfull if somebody will save the result as json or xml
make also the `urls` parameter to an array
@welcome
Copy link

welcome bot commented Jul 31, 2023

Thanks for opening this pull request! Please check out our contributing guidelines.

@auto-assign auto-assign bot requested a review from janbarasek July 31, 2023 19:03
@janbarasek janbarasek merged commit 607de00 into baraja-core:master Jul 31, 2023
3 of 5 checks passed
@welcome
Copy link

welcome bot commented Jul 31, 2023

Congrats on merging your first pull request! We here at Baraja are proud of you!

@janbarasek
Copy link
Member

Thank you. ❤️

@pschur
Copy link
Contributor Author

pschur commented Aug 1, 2023

You're welcome.

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

Successfully merging this pull request may close these issues.

2 participants