krakjoe/instrumental

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

👁 krakjoe

Package info

github.com/krakjoe/instrumental

pkg:composer/krakjoe/instrumental

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 4

Open Issues: 0

1.0.0 2018-02-27 11:50 UTC

Requires

  • php: 7.*
  • ext-componere: *

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License 8fc637b63b1a500d9ac6b8da50ef788868b1434c

This package is auto-updated.

Last update: 2026-06-09 17:39:03 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();
	}
}