public function addMacro(MacroInterface $macro)
	{
		if (!method_exists($macro, 'handle'))
		{
			throw new \LogicException(sprintf('%s does not have a handle method.', get_class($macro)));
		}

		$this->macros[$macro->getMethod()] = $macro;

		return $this;
	}
public function addMacro(MacroInterface $macro)
	{
		if (!method_exists($macro, 'handle'))
		{
			throw new \LogicException(sprintf('%s does not have a handle method.', get_class($macro)));
		}

		$this->macros[$macro->getMethod()] = $macro;

		return $this;
	}
public function addMacro ( MacroInterface $ macro ) { if ( ! method_exists ( $ macro , 'handle' ) ) { throw new \ LogicException ( sprintf ( '%s does not have a handle method.' , get_class ( $ macro ) ) ) ; } $ this -> macros [ $ macro -> getMethod ( ) ] = $ macro ; return $ this ; }
Register a macro.

@param   object  $plugin  MacroInterface
@return  $this
Register a macro .