Closed Ocramius closed 10 years ago
As of https://github.com/DASPRiD/Dash/blob/2271fdbfdb7a627f22cb8cb51223a6ec1a98aeeb/src/Dash/Mvc/Router/Http/Parser/Segment.php#L69, getters can be avoided. Direct property access is perfectly ok in the implementation of the method.
The getter does lazy initialization. So, no.
As of https://github.com/DASPRiD/Dash/blob/2271fdbfdb7a627f22cb8cb51223a6ec1a98aeeb/src/Dash/Mvc/Router/Http/Parser/Segment.php#L69, getters can be avoided. Direct property access is perfectly ok in the implementation of the method.