Pantheon\Terminus\Models\SiteUserMembership::__construct PHP Method

__construct() public method

Object constructor
public __construct ( object $attributes = null, array $options = [] ) : SiteUserMembership
$attributes object Attributes of this model
$options array Options with which to configure this model
return SiteUserMembership
    public function __construct($attributes = null, array $options = [])
    {
        parent::__construct($attributes, $options);
        $this->site = $options['collection']->site;
        $this->user_data = $attributes->user;
    }