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

__construct() public method

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