Skip to content

Instantly share code, notes, and snippets.

@tkhatibi
Created November 18, 2016 13:32
Show Gist options
  • Select an option

  • Save tkhatibi/6990c223588a90c397530a91803c21bb to your computer and use it in GitHub Desktop.

Select an option

Save tkhatibi/6990c223588a90c397530a91803c21bb to your computer and use it in GitHub Desktop.
OOP in ecmascript 6 for php developers
// Within class A
self::foo();
static::foo();
// Without class A
A::foo()
//
// Within class A
A.foo(); // self
this.constructor.foo(); // static
// Without class A
A.foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment