rfc:namespace-visibility
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:namespace-visibility [2018/07/18 21:38] – mdwheele | rfc:namespace-visibility [2018/07/18 21:41] – mdwheele | ||
---|---|---|---|
Line 165: | Line 165: | ||
new \Example\ProtectedClass(); | new \Example\ProtectedClass(); | ||
- | (new Factory())-> | + | (new Factory())-> |
new \Example\PublicClass(); | new \Example\PublicClass(); | ||
Line 247: | Line 247: | ||
</ | </ | ||
- | In a completely separate space that shares no common namespace with '' | + | In a completely separate space that shares no common namespace with '' |
<code php> | <code php> | ||
Line 364: | Line 364: | ||
<code php> | <code php> | ||
namespace { | namespace { | ||
- | class InvalidChildClass extends \Example\PrivateClass {} // ILLEGAL | + | class InvalidChildClass extends \Example\PrivateClass {} |
class InvalidImplementation implements \Example\PrivateInterface | class InvalidImplementation implements \Example\PrivateInterface | ||
- | protected class ProtectedClass extends PublicClass {} | + | protected class ProtectedClass extends PublicClass {} // legal |
class AnotherImplementation implements \Example\PublicInterface {} // legal | class AnotherImplementation implements \Example\PublicInterface {} // legal | ||
} | } | ||
Line 400: | Line 400: | ||
Developers can reflect on any class, interface or trait, regardless of visibility. Four new methods are added to '' | Developers can reflect on any class, interface or trait, regardless of visibility. Four new methods are added to '' | ||
- | - '' | + | * '' |
- | - '' | + | |
- | - '' | + | |
- | - '' | + | |
<code php> | <code php> |
rfc/namespace-visibility.txt · Last modified: 2018/07/18 21:42 by mdwheele