If I make plugin it is not neccessary to inherit from class I override. But, sometimes method I change uses properties that has
protected access and they can't be used by plugin class.
But if I declare in plugin inheritance after modified class it's possible then to use protected properties. Is it ok to do it? Or is it better to declare own
__construct() and inject required classes (I am not sure about difference in states of objects used in plugin and modified class).
Maybe I wasn't clear anough - I modify
public method, using (for this question, mostly)
aroundMethod and for different cases I use
proceed() or inject custom logic - and for this custom logic I have to use
protected properties of modified class. And the question is - should I put inheritance in order to make it possible
NOTE: I don't change any
private - just use it.