Пример #1
0
 /**
  * Put Row
  *
  * @author WN
  * @param Row $content
  * @param int $offset
  * @return $this
  */
 public function put(Row $content, $offset = 0)
 {
     if ($offset < 0) {
         $offset = $this->getWidth() + $offset;
     }
     if ($offset + $content->getWidth() > $this->getWidth()) {
         throw new \OutOfBoundsException('Row is to long to put in here');
     }
     foreach ($content as $char) {
         $this->row[$offset++]->inherit($char);
     }
     return $this;
 }