Commit 580af71e authored by Ghislain Loas's avatar Ghislain Loas

add includes to collection

parent 9fe882b1
......@@ -86,6 +86,9 @@ class Storm_Collection extends ArrayObject {
public function first() {
return array_values($this->getArrayCopy())[0];
}
}
?>
\ No newline at end of file
public function includes($object) {
return in_array($object, $this->getArrayCopy());
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment