Skip to content

Commit 1ae09d1

Browse files
committed
Fixed issue #6 : at() method added as an alias for from() method
1 parent 4ad9d1f commit 1ae09d1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Jsonq.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ public function from($node = null)
7373
return $this;
7474
}
7575

76+
/**
77+
* Alias of from() method
78+
*
79+
* @param null $node
80+
* @return $this
81+
* @throws NullValueException
82+
*/
83+
public function at($node = null)
84+
{
85+
return $this->from($node);
86+
}
87+
7688
/**
7789
* getting prepared data
7890
*

0 commit comments

Comments
 (0)