static public function from($class)
        {
            if (is_object($class)) {
                $class = get_class($class);
            }

            if (empty(self::$prototypes[$class])) {
                self::$prototypes[$class] = new static($class);
            }

            return self::$prototypes[$class];
        }
static public function from($class)
        {
            if (is_object($class)) {
                $class = get_class($class);
            }

            if (empty(self::$prototypes[$class])) {
                self::$prototypes[$class] = new static($class);
            }

            return self::$prototypes[$class];
        }
static public function from ( $ class ) { if ( is_object ( $ class ) ) { $ class = get_class ( $ class ) ; } if ( empty ( self :: $ prototypes [ $ class ] ) ) { self :: $ prototypes [ $ class ] = new static ( $ class ) ; } return self :: $ prototypes [ $ class ] ; }
Returns the prototype associated with the specified class or object.

@param string|object $class Class name or instance.

@return Prototype
Returns the prototype associated with the specified class or object .