guardian_id ), studentId: Val::int( $row->student_id ), relationship: Val::string( $row->relationship ?? '' ), createdAt: Val::stringOrNull( $row->created_at ?? null ), id: Val::int( $row->id ), ); } /** * Returns a plain array representation of the link. * * @return array */ public function toArray(): array { return [ 'id' => $this->id, 'guardian_id' => $this->guardianId, 'student_id' => $this->studentId, 'relationship' => $this->relationship, 'created_at' => $this->createdAt, ]; } }