[GH-ISSUE #92] Make meaningful inheritance possible, change private properties to protected #34

Closed
opened 2026-03-04 23:23:55 +03:00 by kerem · 4 comments
Owner

Originally created by @ampaze on GitHub (Feb 20, 2020).
Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/92

I want to inherit from DNS\Server and add a stop method, which is not possible as $loop and all other properties are private. Can this be changed? I could make a PR if needed.

Originally created by @ampaze on GitHub (Feb 20, 2020). Original GitHub issue: https://github.com/yswery/PHP-DNS-SERVER/issues/92 I want to inherit from `DNS\Server` and add a `stop` method, which is not possible as `$loop` and all other properties are private. Can this be changed? I could make a PR if needed.
kerem closed this issue 2026-03-04 23:23:55 +03:00
Author
Owner

@samuelwilliams commented on GitHub (Feb 20, 2020):

Hi, send through a PR changing the methods that you need access to.

<!-- gh-comment-id:589271474 --> @samuelwilliams commented on GitHub (Feb 20, 2020): Hi, send through a PR changing the methods that you need access to.
Author
Owner

@ampaze commented on GitHub (Feb 21, 2020):

Done. #93

<!-- gh-comment-id:589549861 --> @ampaze commented on GitHub (Feb 21, 2020): Done. #93
Author
Owner

@ampaze commented on GitHub (Feb 22, 2020):

Thanks!

<!-- gh-comment-id:589937819 --> @ampaze commented on GitHub (Feb 22, 2020): Thanks!
Author
Owner

@ampaze commented on GitHub (Feb 25, 2020):

Could you also make a new release?

Even using https://packagist.org/packages/yswery/dns#dev-master is not up to date.

<!-- gh-comment-id:590827714 --> @ampaze commented on GitHub (Feb 25, 2020): Could you also make a new release? Even using https://packagist.org/packages/yswery/dns#dev-master is not up to date.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PHP-DNS-SERVER#34
No description provided.