It's because of the bad architecture. The Node class in the API should not be even there. It's a miss-use of api wrapper. Node should serve as Class Factory here, returning the wanted class. Not wrap it with another level of abstraction.
It's because of the bad architecture. The Node class in the API should not be even there. It's a miss-use of api wrapper. Node should serve as Class Factory here, returning the wanted class. Not wrap it with another level of abstraction.