SimpleSoftwareIO\QrCode\DataTypes\PhoneNumber::create PHP Method

create() public method

Generates the DataType Object and sets all of its properties.
public create ( array $arguments )
$arguments array
    public function create(array $arguments)
    {
        $this->phoneNumber = $arguments[0];
    }

Usage Example

 public function test_it_generates_the_proper_format_for_calling_a_phone_number()
 {
     $phoneNumber = new PhoneNumber();
     $phoneNumber->create(['555-555-5555']);
     $properFormat = 'tel:555-555-5555';
     $this->assertEquals($properFormat, strval($phoneNumber));
 }