public function getTransaction() { if ($annotation = $this->getAnnotationByType('Transaction')) { return $annotation; } }