ElggAnnotation::__construct PHP Method

__construct() public method

Plugin developers will probably never use the constructor. See \ElggEntity for its API for adding annotations.
public __construct ( stdClass $row = null )
$row stdClass Database row as \stdClass object
    public function __construct(\stdClass $row = null)
    {
        $this->initializeAttributes();
        if ($row) {
            foreach ((array) $row as $key => $value) {
                $this->attributes[$key] = $value;
            }
        }
    }