CImage.php
public function injectDependency($property, $object)
    {
        if (!property_exists($this, $property)) {
            $this->raiseError("Injecting unknown property.");
        }
        $this->$property = $object;
        return $this;
    }
public function injectDependency($property, $object)
    {
        if (!property_exists($this, $property)) {
            $this->raiseError("Injecting unknown property.");
        }
        $this->$property = $object;
        return $this;
    }
public function injectDependency ( $ property , $ object ) { if ( ! property_exists ( $ this , $ property ) ) { $ this -> raiseError ( "Injecting unknown property." ) ; } $ this -> $ property = $ object ; return $ this ; }
Inject object and use it, must be available as member.

@param string $property to set as object.
@param object $object   to set to property.

@return $this
Inject object and use it must be available as member .