public function __construct(Git $git, $sha = null, $mode = null, $data = null) { parent::__construct($git, $sha, $mode); if (!is_null($data)) { $this->data['data'] = $data; } }
public function write() { if (!$this->exists) { foreach ($this->data['nodes'] as $node) { $node->write(); } } return parent::write(); }