<?php
/**
* Class HandlingClass
*
* Current design of PSR-5/PSR-19
* @method static RickRollMe() Am I statically called? Or do I return an instance of the subclass
* @method static RickRollYou() Am I statically called? Or do I return an instance of the subclass
*
* Proposed design
* @method RickRollMe():static I am an instance method that returns an instance of the subclass
* @method static RickRollYou():static I am a statically called method that returns an instance of the subclass
*/
abstract class HandlingClass
{
public function __call($name, $arguments)
{
// I'll handle RickRollMe(): static
}
public static function __callStatic($name, $arguments)
{
// I'll handle RickRollYou(): static
}
}