Storm\Drivers\Base\Object\Properties\Collections\Collection::VerifyEntity PHP Method

VerifyEntity() private method

private VerifyEntity ( $Method, $Entity )
    private function VerifyEntity($Method, $Entity)
    {
        if (!$Entity instanceof $this->EntityType) {
            throw new Object\TypeMismatchException('Supplied entity to %s must be of type %s: %s given', $Method, $this->EntityType, \Storm\Core\Utilities::GetTypeOrClass($Entity));
        }
    }