Skip to content

eurekahq/unimplemented

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unimplemented

NotImplementedException for PHP.

Inspired by .NET's NotImplementedException1.

This package exposes a single NotImplementedException class, and nothing else.

NotImplementedException extends the SPL's BadMethodCallException2.

Usage

Usage should be quite straightforward.

<?php

use Shuleni\Unimplemented\NotImplementedException;

function SolveWorldHunger(Universe\Models\Planet $input): Universe\Models\Solution {
  throw new NotImplementedException();
}

Footnotes

  1. https://docs.microsoft.com/en-us/dotnet/api/system.notimplementedexception

  2. https://www.php.net/manual/en/class.badmethodcallexception.php