Skip to content

Commit a384df6

Browse files
committed
remove unused attribute and method from AqlUserFunction
1 parent 267e90f commit a384df6

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Added support for the following attributes on collection level:
1212
- distributeShardsLike
1313
- smartJoinAttribute (only effective in ArangoDB enterprise edition)
1414

15+
Removed unused `$_action` member in class `AqlUserFunction`, also
16+
removed its `__toString()` method.
17+
1518

1619
Release notes for the ArangoDB-PHP driver 3.4.x
1720
===============================================

lib/ArangoDBClient/AqlUserFunction.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
*
4444
* @property string $name - The name of the user function
4545
* @property string $code - The code of the user function
46-
* @property string _action
4746
*
4847
* @package ArangoDBClient
4948
* @since 1.3
@@ -58,19 +57,12 @@ class AqlUserFunction
5857
private $_connection;
5958

6059
/**
61-
* The transaction's attributes.
60+
* The function's attributes.
6261
*
6362
* @var array
6463
*/
6564
protected $attributes = [];
6665

67-
/**
68-
* The transaction's action.
69-
*
70-
* @var string
71-
*/
72-
protected $_action = '';
73-
7466
/**
7567
* Collections index
7668
*/
@@ -367,18 +359,6 @@ public function __get($key)
367359
}
368360

369361

370-
/**
371-
* Returns the action string
372-
*
373-
* @magic
374-
*
375-
* @return string - the current action string
376-
*/
377-
public function __toString()
378-
{
379-
return $this->_action;
380-
}
381-
382362
/**
383363
* Build the object's attributes from a given array
384364
*

0 commit comments

Comments
 (0)