Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
0.00% covered (danger)
0.00%
0 / 1
33.33% covered (danger)
33.33%
2 / 6
CRAP
44.44% covered (danger)
44.44%
4 / 9
TransmissionPackage
0.00% covered (danger)
0.00%
0 / 1
33.33% covered (danger)
33.33%
2 / 6
12.17
44.44% covered (danger)
44.44%
4 / 9
 __construct($transmissionString = null)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 getTransmissionString()
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 setTransmissionString($transmissionString)
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 getErrorCode()
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 setErrorCode()
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 2
 jsonSerialize()
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
<?php
/**
 *
 */
namespace aae\dispatch {
    /**
     * @author Axel Ancona Esselmann
     * @package aae\dispatch
     */
    class TransmissionPackage implements \JsonSerializable {
        private $_transmissionString, $_errorCode = null;
        public function __construct($transmissionString = null) {
            $this->setTransmissionString($transmissionString);
        }
        public function getTransmissionString() {
            return $this->_transmissionString;
        }
        public function setTransmissionString($transmissionString) {
            $this->_transmissionString = $transmissionString;
        }
        public function getErrorCode() {
            return $this->_errorCode;
        }
        public function setErrorCode() {
            $this->_errorCode = $errorCode;
        }
        public function jsonSerialize() {
            return array("transmissionString" => $this->_transmissionString, "errorCode" => $this->_errorCode);
        }
    }
}