iwato Posted July 6, 2017 Share Posted July 6, 2017 QUESTION: How does one read the expression Feed::ATOM in the brief block of code below? class ATOM extends Feed { /** * {@inheritdoc} */ public function __construct() { parent::__construct(Feed::ATOM); } } Link to comment Share on other sites More sharing options...
Ingolme Posted July 6, 2017 Share Posted July 6, 2017 That refers to a constant. It would be defined in the Feed class as const ATOM = 'Some value' 1 Link to comment Share on other sites More sharing options...
iwato Posted July 6, 2017 Author Share Posted July 6, 2017 Thanks Ingolme! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now