Example #1
0
 /**
  * This method returns the message's length.
  *
  * @access public
  * @return integer                                          the message's length
  */
 public function getLength()
 {
     if ($this->body !== null) {
         return $this->body->getFileSize();
     }
     return 0;
 }
Example #2
0
 /**
  * This method returns the length of the resource.
  *
  * @access public
  * @return integer                                          the length of the resource
  */
 public function length()
 {
     return $this->file->getFileSize();
 }