We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example, all classes which represent a piece of the data model have the same constructor:
/** * Constructs a User from a (parsed) JSON hash * * @param mixed $o Either an array (JSON) or an XMLReader. * * @throws \Exception */ public function __construct($o = null) { if (is_array($o)) { $this->initFromArray($o); } else if ($o instanceof \XMLReader) { $success = true; while ($success && $o->nodeType != \XMLReader::ELEMENT) { $success = $o->read(); } if ($o->nodeType != \XMLReader::ELEMENT) { throw new \Exception("Unable to read XML: no start element found."); } $this->initFromReader($o); } }
The text was updated successfully, but these errors were encountered:
setKnownAttribute() and toXml() could be part of the base class too.
setKnownAttribute()
toXml()
Sorry, something went wrong.
No branches or pull requests
For example, all classes which represent a piece of the data model have the same constructor:
The text was updated successfully, but these errors were encountered: