Skip to content

FurkannM/MultipleConstructor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MultipleConstructor

Multiple constructor for php

Argument Length Based Constructor

public function __construct() {}

Without Argument

public function __construct0() { echo "MultipleConstructor test without argument"; }

One Argument

public function __construct1($arg) { echo "MultipleConstructor test with one argument. 1=".$arg; }

Two Argument

public function __construct2($arg, $argtwo) { echo "MultipleConstructor test with two argument. 1=".$arg.", 2=".$argtwo; }

Ten Argument

public function __construct10($one, $two, $three, $four, $fife, $six, $seven, $eight, $nine, $ten) {}

About

Multiple constructor for php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages