file_full_path = $file_full_path; $this->validate = $validate; $this->transform = $transform; } function get() { if ( file_exists( $this->file_full_path ) && $this->validate->from_file( $this->file_full_path ) ) { $xml = file_get_contents( $this->file_full_path ); return $this->transform->get( $xml ); } return null; } }