Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing proper class contructors #28

@northern

Description

@northern

I noticed these kind of constructors in the classes:

function NexmoMessage ($api_key, $api_secret) {
    $this->nx_key = $api_key;
    $this->nx_secret = $api_secret;
}

I believe these are PHP4 style constructors and if I'm not mistaken, will be deprecated. It might be good to replace them with proper constructors instead:

http://php.net/manual/en/language.oop5.decon.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions