Skip to content

Commit 2f327c5

Browse files
author
Nana Axel
committed
Add path and eventType accessors
1 parent 69cf9c0 commit 2f327c5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/FireFS/Events/FileSystemEvent.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,25 @@ public function __construct(int $type, string $path)
8989
$this->_eventType = $type;
9090
$this->_path = $path;
9191
}
92+
93+
/**
94+
* Returns the type of this event.
95+
*
96+
* @return integer
97+
*/
98+
public function getEventType(): int
99+
{
100+
return $this->_eventType;
101+
}
102+
103+
/**
104+
* Returns the path of the entity which raised
105+
* this event.
106+
*
107+
* @return string
108+
*/
109+
public function getPath(): string
110+
{
111+
return $this->_path;
112+
}
92113
}

0 commit comments

Comments
 (0)