public function inject($object) : void
    {
        $reflection = new \ReflectionObject($object);

        $this->injectProperties($reflection, $object);
        $this->injectMethods($reflection, $object);
    }
public function inject($object) : void
    {
        $reflection = new \ReflectionObject($object);

        $this->injectProperties($reflection, $object);
        $this->injectMethods($reflection, $object);
    }
public function inject ( $ object ) : void { $ reflection = new \ ReflectionObject ( $ object ) ; $ this -> injectProperties ( $ reflection , $ object ) ; $ this -> injectMethods ( $ reflection , $ object ) ; }
Injects dependencies in an object.

Properties are injected first, then methods.

@param object $object The object to inject dependencies in.

@return void
Injects dependencies in an object .