Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Cleanup stubs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pinepain committed May 1, 2017
1 parent e54baec commit 64ec8a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
4 changes: 0 additions & 4 deletions stubs/src/MapObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public function Clear()
* @param Context $context
* @param Value $key
*
* //TODO: add throws
*
* @return Value
*/
public function Get(Context $context, Value $key): Value
Expand All @@ -46,8 +44,6 @@ public function Get(Context $context, Value $key): Value
* @param Value $key
* @param Value $value
*
* //TODO: add throws
*
* @return MapObject
*/
public function Set(Context $context, Value $key, Value $value): MapObject
Expand Down
5 changes: 3 additions & 2 deletions stubs/src/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class Script
{
//private $isolate;
/**
* @var Context
*/
private $context;

/**
Expand All @@ -26,7 +28,6 @@ class Script
*/
public function __construct(Context $context, StringValue $source, ScriptOrigin $origin = null)
{
// $this->isolate = $context->isolate;
$this->context = $context;
}

Expand Down
20 changes: 1 addition & 19 deletions stubs/src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ public function Set(NameValue $name, /*Data*/ $value, int $attributes = Property
{
}

//public function void SetAccessorProperty(
// Local<Name> name,
// Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
// Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
// PropertyAttribute attribute = None,
// AccessControl settings = DEFAULT);
/**
* @param NameValue $name
* @param \V8\FunctionTemplate $getter
Expand Down Expand Up @@ -103,20 +97,8 @@ public function SetNativeDataProperty(
callable $getter,
callable $setter = null,
$attribute = PropertyAttribute::None,
FunctionTemplate $receiver,
FunctionTemplate $receiver = null,
$settings = AccessControl::DEFAULT_ACCESS
) {
}

//public function void SetNativeDataProperty(Local<Name> name,
// AccessorNameGetterCallback getter,
// AccessorNameSetterCallback setter = 0,
// // TODO(dcarney): gcc can't handle Local below
// Handle<Value> data = Handle<Value>(),
// PropertyAttribute attribute = None,
// Local<AccessorSignature> signature =
// Local<AccessorSignature>(),
// AccessControl settings = DEFAULT);


}

0 comments on commit 64ec8a5

Please sign in to comment.