From 696ab2c592bafeb513fedc893f6f11ad84aa57a5 Mon Sep 17 00:00:00 2001 From: Ricardo Hernandez Date: Thu, 5 Apr 2018 15:55:10 +0200 Subject: [PATCH] added getters for status and validation_result --- src/AMP.php | 5 +++++ src/Validate/SValidationResult.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/AMP.php b/src/AMP.php index e852ade7..4a2c0be4 100644 --- a/src/AMP.php +++ b/src/AMP.php @@ -127,6 +127,11 @@ public function getAmpHtml() return $this->amp_html; } + public function getValidationResult() + { + return $this->validation_result; + } + /** * AMP constructor. * diff --git a/src/Validate/SValidationResult.php b/src/Validate/SValidationResult.php index 932019ef..59bb2e97 100644 --- a/src/Validate/SValidationResult.php +++ b/src/Validate/SValidationResult.php @@ -40,6 +40,11 @@ */ class SValidationResult extends ValidationResult { + + public function getStatus(){ + return $this->status; + } + /** * Corresponds to maxSpecificity() top level function in validator.js. * (see https://github.com/ampproject/amphtml/blob/master/validator/validator.js )