personId = $personId; $this->entity = $entity; $this->sqlStatement = $sqlStatement; $this->metadata = $metadata; } /** * Add Sql which will be executed **after** the delete statement. * * @param type $postSql * * @return $this */ public function addPostSql(string $postSql) { $this->postSql[] = $postSql; return $this; } /* * Add Sql which will be executed **before** the delete statement */ public function addPreSql(string $preSql) { $this->preSql[] = $preSql; return $this; } /** * get the entity name, as recorded in doctrine. */ public function getEntity(): string { return $this->entity; } public function getMetadata() { return $this->metadata; } public function getPersonId(): int { return $this->personId; } /** * @return string[] */ public function getPostSql(): array { return $this->postSql; } /** * @return string[] */ public function getPreSql(): array { return $this->preSql; } public function getSqlStatement() { return $this->sqlStatement; } }