krakjoe/instrumental

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2018-02-27 11:50 UTC

This package is auto-updated.

Last update: 2024-04-09 13:10:58 UTC


README

Instrumenting classes since 2018

This package allows the instrumentation of classes using Componere

API

namespace Componere {
	class Instrumental {
		public function __construct(string $target);
		public function addOverride(string $method, \Closure $override);
		public function addInvariant(\Closure $handler);
		public function addPrecondition(string $method, \Closure $handler);
		public function addPostcondition(string $method, \Closure $handler);
		public function instrument();
	}
}